Skip to content

Commit

Permalink
Add syslog if init fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jun 14, 2022
1 parent 999a175 commit 3082cf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sonic-eventd/rsyslog_plugin/rsyslog_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,7 @@ RsyslogPlugin::RsyslogPlugin(SyslogParser* syslog_parser, string mod_name, strin
parser = syslog_parser;
module_name = mod_name;
regex_path = path;
onInit();
if(!onInit()) {
SWSS_LOG_ERROR("Initializing rsyslog plugin failed.\n");
}
}

0 comments on commit 3082cf8

Please sign in to comment.