提交 f60c8c09 编写于 作者: A antirez

Don't show the ASCII logo if syslog is enabled.

Closes issue #1935.
上级 04231cb7
......@@ -3107,6 +3107,17 @@ void redisAsciiArt(void) {
if (server.sentinel_mode) mode = "sentinel";
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(),
......@@ -3116,6 +3127,7 @@ void redisAsciiArt(void) {
(long) getpid()
);
redisLogRaw(REDIS_NOTICE|REDIS_LOG_RAW,buf);
}
zfree(buf);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册