Przeglądaj źródła

try catch logs

develop
Robin Thoni 8 lat temu
rodzic
commit
50ae8169ec
1 zmienionych plików z 11 dodań i 1 usunięć
  1. 11
    1
      src/Utils/Business/LuLog.php

+ 11
- 1
src/Utils/Business/LuLog.php Wyświetl plik

@@ -15,6 +15,16 @@ class LuLog {
15 15
 
16 16
     public static function log($data)
17 17
     {
18
-        file_put_contents(self::$_logFilePath, $data, FILE_APPEND);
18
+        try {
19
+            file_put_contents(self::$_logFilePath, $data, FILE_APPEND);
20
+        }
21
+        catch (\Exception $e)
22
+        {
23
+            
24
+        }
25
+        catch (\Error $e)
26
+        {
27
+            
28
+        }
19 29
     }
20 30
 }

Ładowanie…
Anuluj
Zapisz