core: exec_log_level_max_with_exec_params()

This commit is contained in:
Ivan Kruglov
2025-10-16 03:52:08 -07:00
parent fbfc439438
commit 3064c04473
2 changed files with 9 additions and 4 deletions
+6 -2
View File
@@ -366,13 +366,17 @@ const char* exec_get_private_notify_socket_path(const ExecContext *context, cons
return "/run/host/notify";
}
int exec_log_level_max(const ExecContext *context, const ExecParameters *params) {
assert(context);
int exec_log_level_max_with_exec_params(const ExecContext *context, const ExecParameters *params) {
assert(params);
if (params->debug_invocation)
return LOG_DEBUG;
return exec_log_level_max(context);
}
int exec_log_level_max(const ExecContext *context) {
assert(context);
return context->log_level_max < 0 ? log_get_max_level() : context->log_level_max;
}