Skip to content

Commit

Permalink
Remove deprecated path_arg argument from Appsignal.start_logger
Browse files Browse the repository at this point in the history
Part of #202.
  • Loading branch information
jeffkreeftmeijer authored and tombruijn committed Jan 15, 2021
1 parent 9b8ba5d commit b05b2b5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/appsignal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,9 @@ def log_formatter(prefix = nil)
# Sets the log level and sets the logger. Uses a file-based logger or the
# STDOUT-based logger. See the `:log` configuration option.
#
# @param path_arg [nil] Deprecated param. Use the `:log_path`
# configuration option instead.
# @return [void]
# @since 0.7.0
def start_logger(path_arg = nil)
if path_arg
logger.info("Setting the path in start_logger has no effect anymore, set it in the config instead")
end

def start_logger
if config && config[:log] == "file" && config.log_file_path
start_file_logger(config.log_file_path)
else
Expand Down

0 comments on commit b05b2b5

Please sign in to comment.