Skip to content

Commit 8d3b2ca

Browse files
committed
Add hostname to JSON log
1 parent aab4709 commit 8d3b2ca

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)