Include hostname in lograge payload.

This commit is contained in:
Guo Xiang Tan 2018-04-04 18:24:18 +08:00
parent b49f2bf7d9
commit 746889bbc1

View File

@ -34,6 +34,7 @@ if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["
{
ip: ip,
username: username,
hostname: `hostname`
}
rescue => e
Rails.logger.warn("Failed to append custom payload: #{e.message}\n#{e.backtrace.join("\n")}")