Update logger.php

This commit is contained in:
Namhyeon Go 2020-04-28 11:40:25 +09:00 committed by GitHub
parent 4dacbbf332
commit b667703092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,9 @@ if(!is_fn("write_visit_log")) {
if(!is_fn("write_common_log")) {
function write_common_log($message, $component="None", $program="") {
$fw = false;
$data = implode("\t", array(get_current_datetime(), $component, $message));
$mypid = get_shared_var("mypid");
$data = implode("\t", array(get_current_datetime(), $mypid, $component, $message));
$fw = append_log_to_file($data, "common.log");
// if enabled RFC3164 remote debugging