Skip to content

Commit bb128ba

Browse files
committed
Fixed calls to acceptable?()
1 parent 116850a commit bb128ba

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/stackify/logger_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def initialize
77

88
def log level, msg, call_trace
99
Stackify::Utils.do_only_if_authorized_and_mode_is_on Stackify::MODES[:logging] do
10-
if acceptable? level, msg && Stackify.working?
10+
if acceptable?(level, msg) && Stackify.working?
1111
worker = Stackify::AddMsgWorker.new
1212
task = log_message_task level, msg, call_trace
1313
worker.async_perform ScheduleDelay.new, task
@@ -18,7 +18,7 @@ def log level, msg, call_trace
1818
def log_exception level= :error, ex
1919
if ex.is_a?(Stackify::StackifiedError)
2020
Stackify::Utils.do_only_if_authorized_and_mode_is_on Stackify::MODES[:logging] do
21-
if acceptable? level, ex.message && Stackify.working?
21+
if acceptable?(level, ex.message) && Stackify.working?
2222
if @@errors_governor.can_send? ex
2323
worker = Stackify::AddMsgWorker.new
2424
task = log_exception_task level, ex

lib/stackify/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Stackify
2-
VERSION = '1.0.4'
2+
VERSION = '1.0.5'
33
end

0 commit comments

Comments
 (0)