Skip to content

Commit

Permalink
Fix onInit logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jun 14, 2022
1 parent 3082cf8 commit ee28577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-eventd/rsyslog_plugin/rsyslog_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class RsyslogPlugin {
bool onInit() {
event_handle = events_init_publisher(module_name);
int return_code = createRegexList();
return (event_handle != NULL || return_code == 0);
return (event_handle != NULL && return_code == 0);
}

};
Expand Down

0 comments on commit ee28577

Please sign in to comment.