Skip to content

Commit 1362479

Browse files
authored
Merge pull request #3393 from JakubOnderka/json-log-hostname
Add hostname to JSON log
2 parents aab4709 + 8d3b2ca commit 1362479

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transaction.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,7 @@ std::string Transaction::toJSON(int parts) {
16011601
m_variableRequestMethod.evaluate()));
16021602

16031603
LOGFY_ADD("http_version", m_httpVersion);
1604+
LOGFY_ADD("hostname", m_requestHostName);
16041605
LOGFY_ADD("uri", this->m_uri);
16051606

16061607
if (parts & audit_log::AuditLog::CAuditLogPart) {

0 commit comments

Comments
 (0)