Skip to content

Commit 8c3c0ad

Browse files
author
Peter Rezikov
committed
Eliminate method redefinition warning
In case method is redefined we should use undef_method to avoid warnings.
1 parent 0a43d8d commit 8c3c0ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/rails_semantic_logger/extensions/active_job/logging.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module Logging
77

88
private
99

10+
undef_method :tag_logger
1011
def tag_logger(*tags, &block)
1112
logger.tagged(*tags, &block)
1213
end

lib/rails_semantic_logger/extensions/rails/server.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
module Rails
55
class Server
66
private
7-
7+
8+
undef_method :log_to_stdout
89
def log_to_stdout
910
wrapped_app # touch the app so the logger is set up
1011

0 commit comments

Comments
 (0)