Skip to content

Commit 4325e05

Browse files
committed
CFE-4126: Add hardclasses for log levels notice, warning and error
Ticket: CFE-4126 Changelog: Title Signed-off-by: Bastian Triller <bastian.triller@gmail.com>
1 parent 0887b41 commit 4325e05

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

libpromises/generic_agent.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,6 +2682,15 @@ void GenericAgentConfigApply(EvalContext *ctx, const GenericAgentConfig *config)
26822682
// fall through
26832683
case LOG_LEVEL_INFO:
26842684
EvalContextClassPutHard(ctx, "inform_mode", "cfe_internal,source=agent");
2685+
// fall through
2686+
case LOG_LEVEL_NOTICE:
2687+
EvalContextClassPutHard(ctx, "notice_mode", "cfe_internal,source=agent");
2688+
// fall through
2689+
case LOG_LEVEL_WARNING:
2690+
EvalContextClassPutHard(ctx, "warning_mode", "cfe_internal,source=agent");
2691+
// fall through
2692+
case LOG_LEVEL_ERR:
2693+
EvalContextClassPutHard(ctx, "error_mode", "cfe_internal,source=agent");
26852694
break;
26862695
default:
26872696
break;

0 commit comments

Comments
 (0)