From: Tom Hughes Date: Tue, 7 Jul 2020 09:37:56 +0000 (+0100) Subject: Only report traces as offline when they are offline X-Git-Tag: live~2710 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/96ee7ef95c434df4ba9bb5d02257a8355c0b6f50?hp=ce99bfd9ac255cfaa1902f6c71fdf46c3a3ca706 Only report traces as offline when they are offline --- diff --git a/app/controllers/api/traces_controller.rb b/app/controllers/api/traces_controller.rb index 000bb7f90..0b441bef9 100644 --- a/app/controllers/api/traces_controller.rb +++ b/app/controllers/api/traces_controller.rb @@ -159,7 +159,7 @@ module Api end def offline_error - report_error "GPX files offline for maintenance", :service_unavailable + report_error "GPX files offline for maintenance", :service_unavailable if Settings.status == "gpx_offline" end end end