Skip to content

Commit

Permalink
redisLogFromHandler() format changed to match new logs format.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed May 22, 2014
1 parent d98fa71 commit b239a32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b239a32

Please sign in to comment.