From eedaa052db83b111de11afbb257c85c2775309d8 Mon Sep 17 00:00:00 2001 From: Mattias Axelsson Date: Tue, 30 Apr 2024 18:52:23 +0200 Subject: [PATCH] Remove repetitive log messages (#244) If AXParameter or environment variable setup fails, a detailed message is already logged in the failing function. There is no need to repeat that message with less detail at the call site. --- app/dockerdwrapper.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/dockerdwrapper.c b/app/dockerdwrapper.c index 7c90f3b..0b61bf7 100644 --- a/app/dockerdwrapper.c +++ b/app/dockerdwrapper.c @@ -796,17 +796,13 @@ int main(int argc, char** argv) { allow_dockerd_to_start(&app_state, true); app_state.param_handle = setup_axparameter(&app_state); - if (!app_state.param_handle) { - log_error("Error in setup_axparameter"); + if (!app_state.param_handle) return EX_SOFTWARE; - } log_debug_set(is_app_log_level_debug(app_state.param_handle)); - if (!set_env_variables()) { - log_error("Failed to set environment variables"); + if (!set_env_variables()) return EX_SOFTWARE; - } init_signals();