aliyun-sdk 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bc5cc4acd9d6e01955fd76f3b15e38d73a352f457c181bb9de469af4f30c4f3
4
- data.tar.gz: 2ec82c787847ed16ac7172cec823756f8752700a8366048127487d3257a2af32
3
+ metadata.gz: a27f8d07de2e2948e0af93983d9deee1fe09afcdc78be58f4387406061e19bc1
4
+ data.tar.gz: 5f8ee19a0277de7a739221521621ef7be34f8a597f95b688819c737ec746dd1d
5
5
  SHA512:
6
- metadata.gz: e4af5842f0231aa8d5fd3c301e70418f895a5b9e5a36e254a184a4715b70389119a78c931e823ca0df039fde1020b32e82d598becf867b6416b39ecdf904635b
7
- data.tar.gz: 94edfce3d26df7ee399e62b56e48f22c055df2ab967affd22d40f4145e48f27bdc8ada7a16916464330287569a58eb0cbd17d8c5dbca73ce2fd31b081d96644c
6
+ metadata.gz: 5d63ecabcb9835ef73d8e1cb0bf4cebe94e8bdb16c3ea4f890ffcfe7be93edd9874a4b6c0efc175e7f545715b616e6e995cb193b8a16b8215bbfb601ccf4e65f
7
+ data.tar.gz: 64a6931f66da611f9be61fa18ad172fe6c0ba69a4e8c0afd2f286fb2e9aa7b9d243da984cc1e1f98a8bfe035ddc198cf240114811b51a24c7b84c365def14753
@@ -1,5 +1,10 @@
1
1
  ## Change Log
2
2
 
3
+ ### v0.7.3 / 2020-06-28
4
+
5
+ - Add variable control log output path
6
+
7
+
3
8
  ### v0.7.2 / 2020-06-05
4
9
 
5
10
  - add env parameter to descide whether output log file
@@ -11,7 +11,6 @@ module Aliyun
11
11
  # logger.info(xxx)
12
12
  module Logging
13
13
 
14
- DEFAULT_LOG_FILE = "./aliyun_sdk.log"
15
14
  MAX_NUM_LOG = 100
16
15
  ROTATE_SIZE = 10 * 1024 * 1024
17
16
 
@@ -34,11 +33,8 @@ module Aliyun
34
33
 
35
34
  def self.logger
36
35
  unless @logger
37
- @log_file = nil
38
- # Environment parameter ALIYUN_OSS_SDK_LOG_PATH used to control whether output log to a file
39
- if ENV['ALIYUN_OSS_SDK_LOG_PATH']
40
- @log_file ||= DEFAULT_LOG_FILE
41
- end
36
+ # Environment parameter ALIYUN_OSS_SDK_LOG_PATH used to set output log to a file,do not output log if not set
37
+ @log_file ||= ENV["ALIYUN_OSS_SDK_LOG_PATH"]
42
38
  @logger = Logger.new(
43
39
  @log_file, MAX_NUM_LOG, ROTATE_SIZE)
44
40
  @logger.level = Logger::INFO
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aliyun
4
4
 
5
- VERSION = "0.7.2"
5
+ VERSION = "0.7.3"
6
6
 
7
7
  end # Aliyun
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliyun-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tianlong Wu
8
8
  autorequire:
9
9
  bindir: lib/aliyun
10
10
  cert_chain: []
11
- date: 2020-06-05 00:00:00.000000000 Z
11
+ date: 2020-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri