Skip to content

Commit

Permalink
log in the same line (netdata#18118)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Jul 11, 2024
1 parent 47afd05 commit a7a9cc8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/claim/claim.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,8 @@ CLAIM_AGENT_RESPONSE claim_agent(const char *claiming_arguments, bool force, con
return CLAIM_AGENT_CLAIM_SCRIPT_RETURNED_INVALID_CODE;
}

netdata_log_error("Agent failed to be claimed using the command '%s' with the following error message:",
command_exec_buffer);

netdata_log_error("\"%s\"", claiming_errors[exit_code]);
netdata_log_error("Agent failed to be claimed using the command '%s' with the following error message: %s",
command_exec_buffer, claiming_errors[exit_code]);

if(msg) *msg = claiming_errors[exit_code];

Expand Down

0 comments on commit a7a9cc8

Please sign in to comment.