Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
90bbf115
"docs/en/vscode:/vscode.git/clone" did not exist on "d906538edb9dbf4c453fa58aa252a2ea4cc750b9"
Commit
90bbf115
authored
May 22, 2014
by
antirez
Browse files
redisLogFromHandler() format changed to match new logs format.
parent
9996c37e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis.c
View file @
90bbf115
...
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment