diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-11-20 08:54:19 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-11-20 08:54:19 -0500 |
commit | a8afd734094b92cbe64e4ff0df3a4ce7b9e30375 (patch) | |
tree | cd44d322d5fe3c27c5f8fc2f5c803e78684cebf6 /src/utils.c | |
parent | 601681d88387dddda70db8601a98cb89edea1d78 (diff) | |
download | stasis-a8afd734094b92cbe64e4ff0df3a4ce7b9e30375.tar.gz |
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
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
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)); |