mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-08-22 14:15:51 +00:00
Change slow log format (#58)
This commit is contained in:
parent
e889dbcb50
commit
e72c1158c8
@ -318,7 +318,7 @@ print_slow_log_if_necessary (const char *svc_name, const char *func, gsize len,
|
|||||||
if (intv_in_msec < slow_threshold)
|
if (intv_in_msec < slow_threshold)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
strftime(time_buf, 64, "%Y/%m/%d:%H:%M:%S", localtime(&start->tv_sec));
|
strftime(time_buf, 64, "%Y/%m/%d %H:%M:%S", localtime(&start->tv_sec));
|
||||||
|
|
||||||
pthread_mutex_lock (&slow_log_lock);
|
pthread_mutex_lock (&slow_log_lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user