Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8fb0d455
"vscode:/vscode.git/clone" did not exist on "8d6134952aa863311c9efbbc7b474a294c5fd3a0"
Commit
8fb0d455
authored
Dec 03, 2014
by
antirez
Browse files
Don't show the ASCII logo if syslog is enabled.
Closes issue #1935.
parent
237b37a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
8fb0d455
...
...
@@ -3404,15 +3404,27 @@ void redisAsciiArt(void) {
else
if
(
server
.
sentinel_mode
)
mode
=
"sentinel"
;
else
mode
=
"standalone"
;
snprintf(buf,1024*16,ascii_logo,
REDIS_VERSION,
redisGitSHA1(),
strtol(redisGitDirty(),NULL,10) > 0,
(sizeof(long) == 8) ? "64" : "32",
mode, server.port,
(long) getpid()
);
redisLogRaw(REDIS_NOTICE|REDIS_LOG_RAW,buf);
if
(
server
.
syslog_enabled
)
{
redisLog
(
REDIS_NOTICE
,
"Redis %s (%s/%d) %s bit, %s mode, port %d, pid %ld ready to start."
,
REDIS_VERSION
,
redisGitSHA1
(),
strtol
(
redisGitDirty
(),
NULL
,
10
)
>
0
,
(
sizeof
(
long
)
==
8
)
?
"64"
:
"32"
,
mode
,
server
.
port
,
(
long
)
getpid
()
);
}
else
{
snprintf
(
buf
,
1024
*
16
,
ascii_logo
,
REDIS_VERSION
,
redisGitSHA1
(),
strtol
(
redisGitDirty
(),
NULL
,
10
)
>
0
,
(
sizeof
(
long
)
==
8
)
?
"64"
:
"32"
,
mode
,
server
.
port
,
(
long
)
getpid
()
);
redisLogRaw
(
REDIS_NOTICE
|
REDIS_LOG_RAW
,
buf
);
}
zfree
(
buf
);
}
...
...
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