1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-01 12:56:32 +00:00

Change slow log format (#58)

This commit is contained in:
sun20121818
2021-10-08 16:29:52 +08:00
committed by GitHub
parent e889dbcb50
commit e72c1158c8

View File

@@ -318,7 +318,7 @@ print_slow_log_if_necessary (const char *svc_name, const char *func, gsize len,
if (intv_in_msec < slow_threshold)
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);