mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-04 18:36:13 +02:00
Ensure message as error
This commit is contained in:
parent
a1579e186e
commit
8571bb04ee
@ -22,7 +22,7 @@ class Fluentd::Settings::HistoriesController < ApplicationController
|
||||
if @fluentd.agent.dryrun
|
||||
flash = { success: t('messages.dryrun_is_passed') }
|
||||
else
|
||||
flash = { danger: @fluentd.agent.log_tail(1).first }
|
||||
flash = { danger: @fluentd.agent.recent_errors(1).first[:subject] }
|
||||
end
|
||||
redirect_to daemon_setting_history_path(params[:id]), flash: flash
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user