ghost_reader 1.0.0 → 1.0.1
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.
data/lib/ghost_reader/backend.rb
CHANGED
@@ -28,17 +28,15 @@ module GhostReader
|
|
28
28
|
config.logger.level = config.log_level || Logger::WARN
|
29
29
|
config.service[:logger] ||= config.logger
|
30
30
|
config.client = Client.new(config.service)
|
31
|
+
unless config.no_auto_spawn
|
32
|
+
config.logger.debug "GhostReader spawning agents."
|
33
|
+
spawn_retriever
|
34
|
+
spawn_reporter
|
35
|
+
config.logger.debug "GhostReader spawned its agents."
|
36
|
+
end
|
31
37
|
config.logger.info "Initialized GhostReader backend."
|
32
38
|
end
|
33
39
|
|
34
|
-
def spawn_agents
|
35
|
-
config.logger.debug "GhostReader spawning agents."
|
36
|
-
spawn_retriever
|
37
|
-
spawn_reporter
|
38
|
-
config.logger.debug "GhostReader spawned its agents."
|
39
|
-
self
|
40
|
-
end
|
41
|
-
|
42
40
|
protected
|
43
41
|
|
44
42
|
# this won't be called if memoize kicks in
|
@@ -82,7 +80,7 @@ module GhostReader
|
|
82
80
|
else
|
83
81
|
config.logger.debug "Incremental request, but no data."
|
84
82
|
end
|
85
|
-
rescue
|
83
|
+
rescue => ex
|
86
84
|
config.logger.error "Exception in retriever loop: #{ex}"
|
87
85
|
end
|
88
86
|
end
|
data/lib/ghost_reader/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghost_reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Andreas K\xC3\xB6nig"
|