if ($eventd_conf->{log_level}) {
if ($eventd_conf->{log_level} =~ m/^(debug|info|warn|error|fatal)$/) {
$app->log->level($eventd_conf->{log_level});
- $app->log->debug("Eventd::startup: set log_level to '$eventd_conf->{log_level}'");
+ $app->log->info("Eventd::startup: set log_level to '$eventd_conf->{log_level}'");
}
else {
$app->log->error("Eventd::startup: invalid log_level ($eventd_conf->{log_level})");
my $events = $app->model('events');
my $rs = eval { $events->fetch(10) };
+ if ($@) {
+ $app->log->error("Eventd::Daemon::fetch_event_que: fetch event error. message(s):");
+ $app->log->error($@);
+ }
if (!$rs) {
$app->log->fatal("event fetch failed!");
}