use Rails.logger.warn to fix errors when connecting to Mattermost (sync with sciyoshi/redmine-slack commit b002b62553affceaf13e2ad12e108ffa76d76979)
This commit is contained in:
@@ -159,8 +159,8 @@ class MattermostListener < Redmine::Hook::Listener
|
||||
client.ssl_config.ssl_version = :auto
|
||||
client.post_async url, {:payload => params.to_json}
|
||||
rescue Exception => e
|
||||
logger.warn("cannot connect to #{url}")
|
||||
logger.warn(e)
|
||||
Rails.logger.warn("cannot connect to #{url}")
|
||||
Rails.logger.warn(e)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user