Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(logs): look in response.source for uid
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Aug 22, 2016
1 parent c4dab2c commit 2224f87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ Lug.prototype.summary = function (request, response) {
}
line.uid = (request.auth && request.auth.credentials) ?
request.auth.credentials.uid :
payload.uid || query.uid || response.uid || '00'
payload.uid || query.uid || response.uid ||
(response.source && response.source.uid) || '00'
line.service = payload.service || query.service
line.reason = payload.reason || query.reason
line.redirectTo = payload.redirectTo || query.redirectTo
Expand Down

0 comments on commit 2224f87

Please sign in to comment.