mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Fixed issue 77 (Incorrect time in log files) thanks to youwantalex
This commit is contained in:
parent
f72b934d14
commit
6c9385e01d
2
redis.c
2
redis.c
@ -671,7 +671,7 @@ static void redisLog(int level, const char *fmt, ...) {
|
|||||||
time_t now;
|
time_t now;
|
||||||
|
|
||||||
now = time(NULL);
|
now = time(NULL);
|
||||||
strftime(buf,64,"%d %b %H:%M:%S",gmtime(&now));
|
strftime(buf,64,"%d %b %H:%M:%S",localtime(&now));
|
||||||
fprintf(fp,"%s %c ",buf,c[level]);
|
fprintf(fp,"%s %c ",buf,c[level]);
|
||||||
vfprintf(fp, fmt, ap);
|
vfprintf(fp, fmt, ap);
|
||||||
fprintf(fp,"\n");
|
fprintf(fp,"\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user