From e0312448999750aeacce50c14781513810eef5f6 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 28 Mar 2019 14:10:25 +0900 Subject: [PATCH] Update logger.php --- system/logger.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/system/logger.php b/system/logger.php index 3ee64fc..06cb53c 100644 --- a/system/logger.php +++ b/system/logger.php @@ -11,10 +11,9 @@ if(!check_function_exists("write_visit_log")) { $fw = false; if(loadHelper("networktool")) { $data = DOC_EOL . json_encode(get_network_event()); - $fw = write_storage_file($data, array( + $fw = append_storage_file($data, array( "storage_type" => "logs", "filename" => "network.log", - "mode" => "a" )); } @@ -25,10 +24,9 @@ if(!check_function_exists("write_visit_log")) { if(!check_function_exists("write_common_log")) { function write_common_log($msg) { $msg = DOC_EOL . $msg; - return write_storage_file($msg, array( + return append_storage_file($msg, array( "storage_type" => "logs", "filename" => "common.log", - "mode" => "a" )); } }