mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 08:10:17 +01:00
dispatcher: adjust logging output for dispatcher events
Previously, we would log messages like: #3 'pre-up' [tun0]: new request (1 scripts) Journald interprets the "#" prefix as a severity level and highlights them.
This commit is contained in:
parent
8029f59e4f
commit
ea112ed821
1 changed files with 2 additions and 2 deletions
|
|
@ -141,7 +141,7 @@ struct Request {
|
|||
#define __LOG_print(print_cmd, _request, _script, ...) \
|
||||
G_STMT_START { \
|
||||
nm_assert ((_request) && (!(_script) || (_script)->request == (_request))); \
|
||||
print_cmd ("#%u '%s'%s%s%s%s%s%s: " _NM_UTILS_MACRO_FIRST (__VA_ARGS__), \
|
||||
print_cmd ("req:%u '%s'%s%s%s%s%s%s: " _NM_UTILS_MACRO_FIRST (__VA_ARGS__), \
|
||||
(_request)->request_id, \
|
||||
(_request)->action, \
|
||||
(_request)->iface ? " [" : "", \
|
||||
|
|
@ -161,7 +161,7 @@ struct Request {
|
|||
if (!__request) \
|
||||
__request = __script->request; \
|
||||
nm_assert (__request && (!__script || __script->request == __request)); \
|
||||
if ((log_always) || __request->debug) { \
|
||||
if ((log_always) || _LOG_R_D_enabled (__request)) { \
|
||||
if (FALSE) { \
|
||||
/* g_message() alone does not warn about invalid format. Add a dummy printf() statement to
|
||||
* get a compiler warning about wrong format. */ \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue