zxiansheng 4 lat temu
rodzic
commit
7998af7777

+ 0 - 1
2022-01-17_usernetwork.php_error.log

@@ -1 +0,0 @@
-____86803120205729792________86803120205729792________86803120205729792________86803120205729792________86803120205729792________86803120205729792____

+ 5 - 1
common/models/UserNetwork.php

@@ -118,7 +118,11 @@ class UserNetwork extends \common\components\ActiveRecord
                 ];
             } catch (Exception $e) {
                 $file_name = date('Y-m-d', time()).'_usernetwork.php_error.log';
-                file_put_contents($file_name, '____'.$parentUid.'____', FILE_APPEND);
+                file_put_contents($file_name, var_export([
+                    '$parentUid' => $parentUid,
+                    '$userId' => $userId,
+                    'error' => $e->getMessage()
+                ],true), FILE_APPEND);
             }
 
             unset($parentUid, $parentNetInfo);