testa_logger 0.1.24 → 0.1.25

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: c0f3928473b875442c72499b131dca4310c23740d54bb63f8c0c87f4e9f1ddf8
4
- data.tar.gz: 8518e6746d6df32db470c21ad640ac3a8f6671136c7b6ba4b0ca49ced5509b79
3
+ metadata.gz: bc6c84783d220d2af496913f858931653022b56d7a38044784c123c63e7bb28c
4
+ data.tar.gz: d4996b162dc10543d5a31de795a87ed63751455496e8bb82cb2805bacac8d227
5
5
  SHA512:
6
- metadata.gz: 46317eae7fa4795f20a8caab02fbde959af8f72e53cfab3fbd618a26a284931b77f0f0c13cafbe26cbd338653c13f1cf6e167a359ffe26eb7892e2435eca6214
7
- data.tar.gz: 8b2721c89421890cc6f894748221a2c690b53834cc2d39189ce4ac8b0ac766f5c1fe80eaa0e5ce308bb7733e43a5b96121d24be926c3aee6859b24147c2b4fd7
6
+ metadata.gz: 1db32672398e7ef8b986ebd0d635b3af8519c16eb0a40117d85f1c3c84d8fb82819ea8243a7f5b1fe3bc390c81ae2b5976d57d89c61e1821d4516850cb8874b6
7
+ data.tar.gz: '025723923e35af867e146992ec4f6675092e9898fd97b56867ee37752b552bfcc2f31e2276e94b399c307db1da06994a392fda8fb293e4a14a93274563c6e584'
@@ -40,9 +40,9 @@ module TestaLogger
40
40
  @options = Options.new(app, group, subgroup, options)
41
41
  create_log_file
42
42
  setup_dispatcher
43
- start_write_thread
43
+ # start_write_thread
44
44
  init_s3_client if @options.persist
45
- at_exit { flush_queue }
45
+ # at_exit { flush_queue }
46
46
  end
47
47
 
48
48
  def create_log_file
@@ -200,8 +200,9 @@ module TestaLogger
200
200
  log = format_message(formatted_severity, time, "", tag_and_message)
201
201
 
202
202
  # after forking process, write thread will stop working in the forked process
203
- start_write_thread if @pid.nil? || @pid != Process.pid
204
- @queue << log
203
+ # start_write_thread if @pid.nil? || @pid != Process.pid
204
+ # @queue << log
205
+ @log_device.write(log)
205
206
  @dispatcher.push(level, time, tag, message, log) if options.live
206
207
  return unless options.stdout
207
208
 
@@ -1,3 +1,3 @@
1
1
  module TestaLogger
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
3
3
  end
data/logger.iml CHANGED
@@ -11,8 +11,6 @@
11
11
  <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-2.7.6) [gem]" level="application" />
12
12
  <orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.9.2, RVM: ruby-2.7.6) [gem]" level="application" />
13
13
  <orderEntry type="library" scope="PROVIDED" name="aws-eventstream (v1.2.0, RVM: ruby-2.7.6) [gem]" level="application" />
14
- <orderEntry type="library" scope="PROVIDED" name="aws-partitions (v1.620.0, RVM: ruby-2.7.6) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="aws-sdk-core (v3.132.0, RVM: ruby-2.7.6) [gem]" level="application" />
16
14
  <orderEntry type="library" scope="PROVIDED" name="aws-sdk-kms (v1.58.0, RVM: ruby-2.7.6) [gem]" level="application" />
17
15
  <orderEntry type="library" scope="PROVIDED" name="aws-sdk-s3 (v1.114.0, RVM: ruby-2.7.6) [gem]" level="application" />
18
16
  <orderEntry type="library" scope="PROVIDED" name="aws-sigv4 (v1.5.1, RVM: ruby-2.7.6) [gem]" level="application" />
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testa_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - karlo.razumovic