From a8afd734094b92cbe64e4ff0df3a4ce7b9e30375 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 20 Nov 2023 08:54:19 -0500 Subject: Use globals * continue_on_error set by omc config * always_update_base_environment set by omc config * Passing OMC_MSG_RESTRICT flag to msg() will print only in verbose mode --- src/utils.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 5fe03d7..417b0cc 100644 --- a/src/utils.c +++ b/src/utils.c @@ -382,6 +382,11 @@ void msg(unsigned type, char *fmt, ...) { return; } + if (!globals.verbose && type & OMC_MSG_RESTRICT) { + // Verbose mode is not active + return; + } + memset(header, 0, sizeof(header)); memset(status, 0, sizeof(status)); -- cgit