aspera-cli 4.0.0.pre2 → 4.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,7 +49,15 @@ module Aspera
49
49
 
50
50
  # change underlying logger, but keep log level
51
51
  def logger_type=(new_logtype)
52
- current_severity_integer=@logger.nil? ? Logger::Severity::WARN : @logger.level
52
+ current_severity_integer=if @logger.nil?
53
+ if ENV.has_key?('AS_LOG_LEVEL')
54
+ ENV['AS_LOG_LEVEL']
55
+ else
56
+ Logger::Severity::WARN
57
+ end
58
+ else
59
+ @logger.level
60
+ end
53
61
  case new_logtype
54
62
  when :stderr
55
63
  @logger = Logger.new(STDERR)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspera-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.pre2
4
+ version: 4.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-07 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple