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:
parent
9206b64374
commit
1b8a4865ed
1 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue