https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-05-24T09:11:05ZRedmineRedmine - Defect #11013: Fetching Email from IMAP/POP3 - uninitialized constant RAILS_DEFAULT_LOGGER errorhttps://www.redmine.org/issues/11013?journal_id=384112012-05-24T09:11:05ZEtienne Massip
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li><li><strong>Target version</strong> set to <i>2.0.1</i></li></ul><p>Indeed, deprecated constant <a href="https://github.com/rails/rails/commit/800695ad4cef33347bcfef6df7634ff533582449" class="external">has been removed 2 years ago</a>.</p> Redmine - Defect #11013: Fetching Email from IMAP/POP3 - uninitialized constant RAILS_DEFAULT_LOGGER errorhttps://www.redmine.org/issues/11013?journal_id=384182012-05-24T12:24:24ZAndrei Neacsu
<ul></ul><p>I have been able to fix it by changing the lib/redmine/imap.rb file's lines:</p>
<p>def logger<br /> RAILS_DEFAULT_LOGGER<br />end</p>
<p>in</p>
<p>def logger<br /> Logger.new(STDERR)<br />end</p>
<p>I'm not a Ruby developer, so I really don't know if this is the best way of do it. I just had to find a quick path in order to activate this feature, since redmine is running on my company's development server.</p> Redmine - Defect #11013: Fetching Email from IMAP/POP3 - uninitialized constant RAILS_DEFAULT_LOGGER errorhttps://www.redmine.org/issues/11013?journal_id=384262012-05-24T12:58:27ZEtienne Massip
<ul></ul><p>I think it should be replaced by <code>::Rails.logger</code>.</p> Redmine - Defect #11013: Fetching Email from IMAP/POP3 - uninitialized constant RAILS_DEFAULT_LOGGER errorhttps://www.redmine.org/issues/11013?journal_id=384272012-05-24T13:19:19ZAndrei Neacsu
<ul></ul><p>You are right.<br />Thank you very much for your help.</p>
<p>The same issue is valid for pop3.rb.</p> Redmine - Defect #11013: Fetching Email from IMAP/POP3 - uninitialized constant RAILS_DEFAULT_LOGGER errorhttps://www.redmine.org/issues/11013?journal_id=384702012-05-25T16:54:36ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Resolved</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fix committed in <a class="changeset" title="Replace RAILS_DEFAULT_LOGGER with ::Rails.logger (#11013)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/9712">r9712</a>, thanks.</p> Redmine - Defect #11013: Fetching Email from IMAP/POP3 - uninitialized constant RAILS_DEFAULT_LOGGER errorhttps://www.redmine.org/issues/11013?journal_id=384712012-05-25T16:54:44ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>Fetching Email from IMAP - uninitialized constant RAILS_DEFAULT_LOGGER error</i> to <i>Fetching Email from IMAP/POP3 - uninitialized constant RAILS_DEFAULT_LOGGER error</i></li></ul> Redmine - Defect #11013: Fetching Email from IMAP/POP3 - uninitialized constant RAILS_DEFAULT_LOGGER errorhttps://www.redmine.org/issues/11013?journal_id=384912012-05-26T09:48:45ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Merged.</p>