mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 17:29:47 +08:00
Include hostname in lograge payload.
This commit is contained in:
parent
b49f2bf7d9
commit
746889bbc1
|
@ -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")}")
|
||||
|
|
Loading…
Reference in New Issue
Block a user