From b239a32aaee896fbff704b1aefffa18980b2e22d Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 22 May 2014 19:24:35 +0200 Subject: [PATCH] redisLogFromHandler() format changed to match new logs format. --- src/redis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/redis.c b/src/redis.c index 19c929739..6a72ca53d 100644 --- a/src/redis.c +++ b/src/redis.c @@ -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;