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