Skip to content

Commit f95e26c

Browse files
committed
Removed is_appropriate_env
1 parent 472a11b commit f95e26c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lib/stackify/logger_client.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def log_exception level= :error, ex
3838

3939
def acceptable? level, msg
4040
Stackify.is_valid? && is_correct_log_level?(level) &&
41-
is_not_internal_log_message?(msg) &&
42-
is_appropriate_env?
41+
is_not_internal_log_message?(msg)
4342
end
4443

4544
def is_not_internal_log_message? msg
@@ -52,10 +51,6 @@ def is_correct_log_level? level
5251
current_level >= config_level
5352
end
5453

55-
def is_appropriate_env?
56-
Stackify.configuration.env.downcase.to_sym == Stackify::EnvDetails.instance.auth_info['ConfiguredEnvironmentName'].downcase.to_sym
57-
end
58-
5954
def log_message_task level, msg, call_trace
6055
Stackify::ScheduleTask.new ({limit: 1}) do
6156
if %w(error fatal).include?(level)

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.6'
2+
VERSION = '1.0.7'
33
end

0 commit comments

Comments
 (0)