mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Tolerate missing logger
This commit is contained in:
parent
3962be5b8c
commit
85eb3af873
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ module ActiveResource
|
|||
end_code
|
||||
silence_warnings { instance_eval code, __FILE__, __LINE__ }
|
||||
rescue
|
||||
logger.error "Couldn't set prefix: #{$!}\n #{code}"
|
||||
logger.error "Couldn't set prefix: #{$!}\n #{code}" if logger
|
||||
raise
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue