mirror of
https://github.com/Theldus/alertik.git
synced 2024-11-25 01:14:10 +01:00
Bug Fix: Replace printf to log_msg
This commit is contained in:
parent
9a4280246a
commit
92b7285ded
19
env_events.c
19
env_events.c
@ -405,17 +405,14 @@ int init_environment_events(void)
|
||||
}
|
||||
|
||||
log_msg("Environment events summary:\n");
|
||||
for (int i = 0; i < num_env_events; i++) {
|
||||
printf(
|
||||
"EVENT%d_MATCH_TYPE: %s\n"
|
||||
"EVENT%d_MATCH_STR: %s\n"
|
||||
"EVENT%d_NOTIFIER: %s\n"
|
||||
"EVENT%d_MASK_MSG: %s\n\n",
|
||||
i, match_types[env_events[i].ev_match_type],
|
||||
i, env_events[i].ev_match_str,
|
||||
i, notifiers_str[env_events[i].ev_notifier_idx],
|
||||
i, env_events[i].ev_mask_msg
|
||||
);
|
||||
for (int i = 0; i < num_env_events; i++)
|
||||
{
|
||||
log_msg("EVENT%d_MATCH_TYPE: %s\n", i,
|
||||
match_types[env_events[i].ev_match_type]);
|
||||
log_msg("EVENT%d_MATCH_STR: %s\n", i, env_events[i].ev_match_str);
|
||||
log_msg("EVENT%d_NOTIFIER: %s\n", i,
|
||||
notifiers_str[env_events[i].ev_notifier_idx]);
|
||||
log_msg("EVENT%d_MASK_MSG: %s\n\n", i, env_events[i].ev_mask_msg);
|
||||
|
||||
/* Try to setup notifier if not yet. */
|
||||
self = ¬ifiers[env_events[i].ev_notifier_idx];
|
||||
|
8
events.c
8
events.c
@ -166,11 +166,9 @@ int init_static_events(void)
|
||||
if (!static_events[i].enabled)
|
||||
continue;
|
||||
|
||||
printf(
|
||||
"STATIC_EVENT%d : enabled\n"
|
||||
"STATIC_EVENT%d_NOTIFIER: %s\n\n",
|
||||
i, i, notifiers_str[static_events[i].ev_notifier_idx]
|
||||
);
|
||||
log_msg("STATIC_EVENT%d : enabled\n", i);
|
||||
log_msg("STATIC_EVENT%d_NOTIFIER: %s\n\n",
|
||||
i, notifiers_str[static_events[i].ev_notifier_idx]);
|
||||
|
||||
/* Try to setup notifier if not yet. */
|
||||
self = ¬ifiers[static_events[i].ev_notifier_idx];
|
||||
|
Loading…
Reference in New Issue
Block a user