mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 18:54:58 +00:00
redisLogFromHandler() format changed to match new logs format.
This commit is contained in:
parent
d98fa718e0
commit
b239a32aae
@ -359,9 +359,8 @@ void redisLogFromHandler(int level, const char *msg) {
|
||||
open(server.logfile, O_APPEND|O_CREAT|O_WRONLY, 0644);
|
||||
if (fd == -1) return;
|
||||
ll2string(buf,sizeof(buf),getpid());
|
||||
if (write(fd,"[",1) == -1) goto err;
|
||||
if (write(fd,buf,strlen(buf)) == -1) goto err;
|
||||
if (write(fd," | signal handler] (",20) == -1) goto err;
|
||||
if (write(fd,":signal-handler (",17) == -1) goto err;
|
||||
ll2string(buf,sizeof(buf),time(NULL));
|
||||
if (write(fd,buf,strlen(buf)) == -1) goto err;
|
||||
if (write(fd,") ",2) == -1) goto err;
|
||||
|
Loading…
Reference in New Issue
Block a user