From 09fed8fc5dadd8c971fc54bb4e364b2115438063 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Tue, 13 Aug 2024 13:39:32 +0800 Subject: [PATCH] chore: log daily statistic error messages --- app/services/charts/daily_statistic_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/charts/daily_statistic_generator.rb b/app/services/charts/daily_statistic_generator.rb index 268b136d4..29a9544ef 100644 --- a/app/services/charts/daily_statistic_generator.rb +++ b/app/services/charts/daily_statistic_generator.rb @@ -18,7 +18,7 @@ def call daily_statistic rescue Exception => e - NewRelic::Agent.notice_error(e) + Rails.logger.error "Error occurred during DailyStatisticGenerator error: #{e.message}" end private