lib/dtr/agent/sync_logger.rb in dtr-1.0.0 vs lib/dtr/agent/sync_logger.rb in dtr-1.1.0
- old
+ new
@@ -59,9 +59,10 @@
end
private
def with_decorating_message(level, msg, &block)
raise 'Should not use block to send log remotely' if block_given?
+ msg = "#{ENV['DTR_RUNNER_NAME']}: #{msg}"if ENV['DTR_RUNNER_NAME']
@logger.send(level, decorate_message(msg))
end
end
end