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 +4 -4
- data/lib/testa_logger/logger.rb +5 -4
- data/lib/testa_logger/version.rb +1 -1
- data/logger.iml +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc6c84783d220d2af496913f858931653022b56d7a38044784c123c63e7bb28c
|
4
|
+
data.tar.gz: d4996b162dc10543d5a31de795a87ed63751455496e8bb82cb2805bacac8d227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1db32672398e7ef8b986ebd0d635b3af8519c16eb0a40117d85f1c3c84d8fb82819ea8243a7f5b1fe3bc390c81ae2b5976d57d89c61e1821d4516850cb8874b6
|
7
|
+
data.tar.gz: '025723923e35af867e146992ec4f6675092e9898fd97b56867ee37752b552bfcc2f31e2276e94b399c307db1da06994a392fda8fb293e4a14a93274563c6e584'
|
data/lib/testa_logger/logger.rb
CHANGED
@@ -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
|
|
data/lib/testa_logger/version.rb
CHANGED
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" />
|