feat: modify logging level of batch job worker
The logging level of the batch job worker has been changed from info to debug. The change affects how the batch job worker outputs information about the cities it is processing. - Original behavior: The batch job worker logs cities' information at the info level. - New behavior: The batch job worker logs cities' information at the debug level. The motivation behind this change is to reduce the noise in the logs. The new behavior will only log cities' information that is relevant for debugging purposes.
This commit is contained in:
parent
2042732787
commit
299107b988
@ -56,7 +56,7 @@ class BatchGenerateWeatherArtsWorker
|
||||
|
||||
def within_sunrise_time?(city)
|
||||
local_time = get_local_time(city)
|
||||
Rails.logger.info "#{city.name} now hour: #{local_time.hour}"
|
||||
Rails.logger.debug "#{city.name} now hour: #{local_time.hour}"
|
||||
local_time.hour >= 8 && local_time.hour <= 18
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user