Skip to content

Commit

Permalink
Send imap logs to separate log file
Browse files Browse the repository at this point in the history
  • Loading branch information
kraft001 committed Jun 17, 2014
1 parent 034ed06 commit dbd47bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/mailreceiver.rb
Expand Up @@ -19,6 +19,7 @@ def self.receive(config_file)
merge(protocol_options[cfg['protocol'].to_sym]).
symbolize_keys
klass = "Redmine::#{cfg['protocol'].upcase}".constantize
shout "Fetching emails via protocol: #{cfg['protocol']}"
klass.check(connection_options, options)
else
MailHandler.receive(STDIN.read, options)
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine/imap.rb
Expand Up @@ -60,7 +60,7 @@ def check(imap_options={}, options={})

def logger
#RAILS_DEFAULT_LOGGER
@logger ||= Logger.new(File.join(Rails.root, 'log', 'scheduler.log'))
@logger ||= Logger.new(File.join(Rails.root, 'log', 'imap.log'))
@logger
end

Expand Down

0 comments on commit dbd47bb

Please sign in to comment.