Skip to content

Commit d9e9d28

Browse files
committed
start the logger as early in the application call stack as possible
1 parent 0ffb0f1 commit d9e9d28

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/hooks/app/api.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class << self
2929
def self.create(config:, endpoints:, log:)
3030
@server_start_time = Time.now
3131

32-
Hooks::Log.instance = log
33-
3432
api_class = Class.new(Grape::API) do
3533
content_type :json, "application/json"
3634
content_type :txt, "text/plain"

lib/hooks/core/builder.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def build
3535
)
3636
end
3737

38+
Hooks::Log.instance = @log
39+
3840
# Hydrate our Retryable instance
3941
Retry.setup!(log: @log)
4042

lib/hooks/core/global_components.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class GlobalComponents
1212

1313
class << self
1414
attr_accessor :stats, :failbot
15-
1615
end
1716

1817
# Reset components to default instances (for testing)

0 commit comments

Comments
 (0)