Add Process pid to lograge output as well.

This commit is contained in:
Guo Xiang Tan 2018-04-04 18:31:29 +08:00
parent 746889bbc1
commit e04d09d148
1 changed files with 2 additions and 1 deletions

View File

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