From 1e35b1b3b2ddb67557922a750ccd071058f38ed6 Mon Sep 17 00:00:00 2001 From: codinghuang <2812240764@qq.com> Date: Mon, 4 Jan 2021 11:51:21 +0800 Subject: [PATCH] Optimize yasd log info --- src/logger.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger.cc b/src/logger.cc index b180d16..117c864 100644 --- a/src/logger.cc +++ b/src/logger.cc @@ -75,7 +75,7 @@ void Logger::put(int level, const char *content, size_t length) { // TODO(codinghuang): seems there are "buffer overflow detected" problem if (length > YASD_MSG_SIZE) { - yasd::Util::printfln_info(yasd::Color::YASD_ECHO_RED, "length is greater than the YASD_MSG_SIZE"); + yasd::Util::printfln_info(yasd::Color::YASD_ECHO_YELLOW, "[yasd] length is greater than the YASD_MSG_SIZE"); length = YASD_MSG_SIZE; } memcpy(yasd_info_buf, content, length);