Skip to content

Commit b48ad01

Browse files
authored
Merge pull request #5601 from vpodzime/3.21.x-no_returncodes_error
[3.21.x] Log errors for commands promises with exit codes not matching any _returncodes
2 parents 568048f + 48788fa commit b48ad01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf-agent/retcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ bool VerifyCommandRetcode(EvalContext *ctx, int retcode, const Attributes *a, co
8686

8787
if (!matched)
8888
{
89-
cfPS(ctx, info_or_verbose, PROMISE_RESULT_FAIL, pp, a,
89+
cfPS(ctx, LOG_LEVEL_ERR, PROMISE_RESULT_FAIL, pp, a,
9090
"Command related to promiser '%s' returned code '%d' not defined as promise kept, not kept or repaired; setting to failed",
9191
pp->promiser, retcode);
9292
*result = PromiseResultUpdate(*result, PROMISE_RESULT_FAIL);

0 commit comments

Comments
 (0)