Revert "Ensure message as error" (logged_errors method is in the bug)

This reverts commit 8571bb04ee46a0e26193fa6dfb5857813744ff89.
This commit is contained in:
uu59 2015-01-14 17:45:47 +09:00
parent 8571bb04ee
commit 2766ea95fe

View File

@ -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.recent_errors(1).first[:subject] }
flash = { danger: @fluentd.agent.log_tail(1).first }
end
redirect_to daemon_setting_history_path(params[:id]), flash: flash
end