logging: also log ip address
This commit is contained in:
parent
a09e92dd96
commit
f20da06d43
@ -46,7 +46,7 @@ export default class LogRequestsComponent extends ApplicationComponent {
|
||||
req.log.info(requestObj);
|
||||
}
|
||||
} else {
|
||||
let logStr = `${req.method} ${req.originalUrl} - ${res.statusCode}`;
|
||||
let logStr = `${req.ip} < ${req.method} ${req.originalUrl} - ${res.statusCode}`;
|
||||
if (err) {
|
||||
if (err instanceof Error) {
|
||||
if (silent) {
|
||||
|
Loading…
Reference in New Issue
Block a user