Skip to content

Commit

Permalink
libnodectld: show kernel log parser error message in log
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed May 29, 2021
1 parent 9899edd commit c6bf5ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libnodectld/lib/nodectld/kernel_log/parser.rb
Expand Up @@ -165,7 +165,8 @@ def submit_thread
def call_event
begin
yield
rescue KernelLog::Event::Error
rescue KernelLog::Event::Error => e
log(:warn, "Parser error: #{e.message}")
close_event
else
close_event if event.finished?
Expand Down

0 comments on commit c6bf5ca

Please sign in to comment.