1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-08-02 05:12:55 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);