Kaynağa Gözat

try catch logs

develop
Robin Thoni 8 yıl önce
ebeveyn
işleme
50ae8169ec
1 değiştirilmiş dosya ile 11 ekleme ve 1 silme
  1. 11
    1
      src/Utils/Business/LuLog.php

+ 11
- 1
src/Utils/Business/LuLog.php Dosyayı Görüntüle

@@ -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
 }

Loading…
İptal
Kaydet