testa_logger 0.1.22 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff7ad4e5fb128b752065e10155a436d3c897561744f985bc671a65a1b92f2a50
4
- data.tar.gz: 672aa0754bde18448acc847ca3e5d82f63ed4bca7c1cfad6e9d697d978c283a0
3
+ metadata.gz: bc6c84783d220d2af496913f858931653022b56d7a38044784c123c63e7bb28c
4
+ data.tar.gz: d4996b162dc10543d5a31de795a87ed63751455496e8bb82cb2805bacac8d227
5
5
  SHA512:
6
- metadata.gz: 504beb57cb3a52a14f60643b6ee9e51ce5d1e59282d248ccf9714229bf1f4de252262ebd07215f7e7b3a0f3d7a4e6ec3595fb241188c75de1d461493d2aa9f11
7
- data.tar.gz: 989341c9df47cfcc9c7eecc6159a4a0288b258b6384f049b3801b99d0758cefbdf4b9cded7e8d398ea0b03fc3720b0f79ac518cd9d146f358f97c90d13b7bb3d
6
+ metadata.gz: 1db32672398e7ef8b986ebd0d635b3af8519c16eb0a40117d85f1c3c84d8fb82819ea8243a7f5b1fe3bc390c81ae2b5976d57d89c61e1821d4516850cb8874b6
7
+ data.tar.gz: '025723923e35af867e146992ec4f6675092e9898fd97b56867ee37752b552bfcc2f31e2276e94b399c307db1da06994a392fda8fb293e4a14a93274563c6e584'
data/Gemfile.lock CHANGED
@@ -1,11 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testa_logger (0.1.22)
4
+ testa_logger (0.1.24)
5
5
  activesupport
6
6
  awesome_print
7
7
  aws-sdk-s3
8
- concurrent-ruby
9
8
  json
10
9
  securerandom
11
10
 
@@ -21,8 +20,8 @@ GEM
21
20
  ast (2.4.2)
22
21
  awesome_print (1.9.2)
23
22
  aws-eventstream (1.2.0)
24
- aws-partitions (1.620.0)
25
- aws-sdk-core (3.132.0)
23
+ aws-partitions (1.621.0)
24
+ aws-sdk-core (3.133.0)
26
25
  aws-eventstream (~> 1, >= 1.0.2)
27
26
  aws-partitions (~> 1, >= 1.525.0)
28
27
  aws-sigv4 (~> 1.1)
@@ -15,7 +15,7 @@ module TestaLogger
15
15
  @faye_token = faye_token
16
16
  @channel = "/logs/live/#{logger.app}/#{logger.group}"
17
17
  @channel += "/#{logger.subgroup}" unless logger.subgroup.nil?
18
- @outbox = Concurrent::Array.new
18
+ @outbox = []
19
19
  run_dispatch_thread
20
20
  at_exit { dispatch if @outbox.count.positive? }
21
21
  end
@@ -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.22"
2
+ VERSION = "0.1.25"
3
3
  end
data/lib/testa_logger.rb CHANGED
@@ -5,11 +5,9 @@ require_relative "testa_logger/io_persistence_error"
5
5
  require "active_support"
6
6
  require "active_support/core_ext/hash"
7
7
  require "awesome_print"
8
- require "concurrent-ruby"
9
8
  require "json"
10
9
  require "uri"
11
10
  require "net/http"
12
- require "at_fork"
13
11
 
14
12
  module TestaLogger
15
13
  # @param [String] app name of the application, i.e. rails, ws, dj, filewatcher
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" />
@@ -42,21 +40,21 @@
42
40
  <option name="myRootTask">
43
41
  <RakeTaskImpl id="rake">
44
42
  <subtasks>
45
- <RakeTaskImpl description="Build testa_logger-0.1.21.gem into the pkg directory" fullCommand="build" id="build" />
43
+ <RakeTaskImpl description="Build testa_logger-0.1.22.gem into the pkg directory" fullCommand="build" id="build" />
46
44
  <RakeTaskImpl id="build">
47
45
  <subtasks>
48
- <RakeTaskImpl description="Generate SHA512 checksum if testa_logger-0.1.21.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
46
+ <RakeTaskImpl description="Generate SHA512 checksum if testa_logger-0.1.22.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
49
47
  </subtasks>
50
48
  </RakeTaskImpl>
51
49
  <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
52
50
  <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
53
- <RakeTaskImpl description="Build and install testa_logger-0.1.21.gem into system gems" fullCommand="install" id="install" />
51
+ <RakeTaskImpl description="Build and install testa_logger-0.1.22.gem into system gems" fullCommand="install" id="install" />
54
52
  <RakeTaskImpl id="install">
55
53
  <subtasks>
56
- <RakeTaskImpl description="Build and install testa_logger-0.1.21.gem into system gems without network access" fullCommand="install:local" id="local" />
54
+ <RakeTaskImpl description="Build and install testa_logger-0.1.22.gem into system gems without network access" fullCommand="install:local" id="local" />
57
55
  </subtasks>
58
56
  </RakeTaskImpl>
59
- <RakeTaskImpl description="Create tag v0.1.21 and build and push testa_logger-0.1.21.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
57
+ <RakeTaskImpl description="Create tag v0.1.22 and build and push testa_logger-0.1.22.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
60
58
  <RakeTaskImpl description="Run tests" fullCommand="test" id="test" />
61
59
  <RakeTaskImpl description="" fullCommand="default" id="default" />
62
60
  <RakeTaskImpl description="" fullCommand="release" id="release" />
data/testa_logger.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "activesupport"
22
22
  spec.add_runtime_dependency "awesome_print"
23
23
  spec.add_runtime_dependency "aws-sdk-s3"
24
- spec.add_runtime_dependency "concurrent-ruby"
24
+ # spec.add_runtime_dependency "concurrent-ruby"
25
25
  spec.add_runtime_dependency "json"
26
26
  spec.add_runtime_dependency "securerandom"
27
27
 
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.22
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - karlo.razumovic
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: concurrent-ruby
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: json
71
57
  requirement: !ruby/object:Gem::Requirement