Browse Source

try catch logs

develop
Robin Thoni 8 years ago
parent
commit
50ae8169ec
1 changed files with 11 additions and 1 deletions
  1. 11
    1
      src/Utils/Business/LuLog.php

+ 11
- 1
src/Utils/Business/LuLog.php View File

15
 
15
 
16
     public static function log($data)
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…
Cancel
Save