From b5fa26e8a6ac9dec0700788e193beb0c86c30d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 18 Aug 2020 12:01:00 +0300 Subject: [PATCH] MXS-3113: Log a message when log rotation is complete This helps detect that writes to the new log file are working. --- maxutils/maxbase/src/log.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maxutils/maxbase/src/log.cc b/maxutils/maxbase/src/log.cc index 1c4d6e7c7..80a440a96 100644 --- a/maxutils/maxbase/src/log.cc +++ b/maxutils/maxbase/src/log.cc @@ -641,6 +641,11 @@ bool mxb_log_rotate() unused = freopen(this_unit.sLogger->filename(), "a", stderr); } + if (rval) + { + MXB_NOTICE("Log rotation complete"); + } + return rval; }