Add more data to error logging
This commit is contained in:
Родитель
df90169c0f
Коммит
07dddec7cf
|
@ -58,9 +58,9 @@ module Fluent
|
|||
begin
|
||||
@socket.send(metric, 0, @host, @port)
|
||||
rescue Errno::ECONNREFUSED => error
|
||||
log.warn "Error connecting to #{@host}: #{error}"
|
||||
log.warn "Error connecting to #{@host} while sending the record \"#{record}\": #{error}"
|
||||
rescue => error
|
||||
log.error "Unhandled error trying to send MDM message"
|
||||
log.error "Unhandled error trying to send MDM message: \"#{record}\""
|
||||
end
|
||||
}
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче