Commit a9a97713 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #275 in ZP/z-push from...

Merge pull request #275 in ZP/z-push from bugfix/ZP-945-log-time-and-memory-consumption-also to develop

* commit 'b8a5f52d':
  ZP-945 Format time output at the end of the request to match memory usage format.
parents e729b422 b8a5f52d
......@@ -232,7 +232,7 @@ include_once(ZPUSH_CONFIG);
ZLog::Write(LOGLEVEL_INFO,
sprintf("cmd='%s' memory='%s/%s' time='%ss' devType='%s' devId='%s' getUser='%s' from='%s' version='%s' method='%s' httpcode='%s'",
Request::GetCommand(), Utils::FormatBytes(memory_get_peak_usage(false)), Utils::FormatBytes(memory_get_peak_usage(true)),
number_format(microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"], 2, ',', '.'),
number_format(microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"], 2),
Request::GetDeviceType(), Request::GetDeviceID(), Request::GetGETUser(), Request::GetRemoteAddr(), @constant('ZPUSH_VERSION'), Request::GetMethod(), http_response_code() ));
ZLog::Write(LOGLEVEL_DEBUG, "-------- End");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment