1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Write logger output to stderr to conform to convention

Writing log to stdout causes issues when piping.
This commit is contained in:
Bruno Enten 2013-11-13 11:33:53 +01:00
parent 9206b64374
commit 1b8a4865ed

View file

@ -2,11 +2,11 @@ module Fog
class Logger
@channels = {
:deprecation => ::STDOUT,
:warning => ::STDOUT
:deprecation => ::STDERR,
:warning => ::STDERR
}
@channels[:debug] = ::STDOUT if ENV['DEBUG']
@channels[:debug] = ::STDERR if ENV['DEBUG']
def self.[](channel)
@channels[channel]