mirror of
https://github.com/LibreOffice/online.git
synced 2025-07-29 12:01:08 +00:00
Add LOG_INF_NOFILE that doesn't display the source file location
Useful (like LOG_TRC_NOFILE) in cases where the source file location of the LOG_INF call is uninteresting. (Like if the message to be logged has originated somewhere else.) Change-Id: Id6d8c137be073a958943f01b3d7b98143fcd7dfd Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98735 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
@ -339,6 +339,16 @@ namespace Log
|
||||
} \
|
||||
} while (false)
|
||||
|
||||
#define LOG_INF_NOFILE(X) \
|
||||
do \
|
||||
{ \
|
||||
auto& log_ = Log::logger(); \
|
||||
if (log_.information() && !Log::isShutdownCalled()) \
|
||||
{ \
|
||||
LOG_BODY_(log_, INFORMATION, "INF", X, false); \
|
||||
} \
|
||||
} while (false)
|
||||
|
||||
#define LOG_WRN(X) \
|
||||
do \
|
||||
{ \
|
||||
|
Reference in New Issue
Block a user