fix: correct logger reference in city description worker
- Fix the logging reference to use the instance variable @city instead of the local variable city. This change ensures that the correct city name is logged upon successfully generating the city description, which improves the clarity and accuracy of the log messages.
This commit is contained in:
parent
43ae514242
commit
6dce657126
@ -11,7 +11,7 @@ class GenerateCityDescriptionWorker
|
||||
@city = City.find(city_id)
|
||||
Rails.logger.info "Get [#{@city.name}] Description with [#{force_refresh}] force refresh."
|
||||
desc = @city.get_description("en", force_refresh)
|
||||
Rails.logger.info "Successful Generate #{city.name} Desc: #{desc}"
|
||||
Rails.logger.info "Successful Generate #{@city.name} Desc: #{desc}"
|
||||
ensure
|
||||
redis.del(lock_key)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user