Skip to content

Commit

Permalink
Merge pull request #2728 from open-hpi/2722_openhpid_logs_issue
Browse files Browse the repository at this point in the history
Added fix for 2722_openhpid_logs_warnings_errors_continuosly
  • Loading branch information
mohandev2 authored Aug 24, 2018
2 parents 3a78048 + 2f21268 commit f3646cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openhpid/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ int oh_init(void)
config.handlers_loaded < config.handlers_defined) {
WARN("*Warning*: Not all handlers defined loaded."
" Check previous messages.");
} else if(!config.handlers_defined) {
data_access_unlock();
CRIT("No handlers found in the config!");
CRIT("Check the configuration and restart the Daemon");
return SA_ERR_HPI_ERROR;
}

/* Start discovery and event threads */
Expand Down

0 comments on commit f3646cc

Please sign in to comment.