Skip to content

Commit

Permalink
Merge pull request #456 from Bitcoin-com/stage
Browse files Browse the repository at this point in the history
Log user-agent header too
  • Loading branch information
christroutner authored Jun 7, 2019
2 parents ea73e3c + 5806fed commit 0f01c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ app.set("view engine", "jade")
app.use("/public", express.static(`${__dirname}/public`))

// Log each request to the console with IP addresses.
app.use(logger(`:remote-addr :remote-user :method :url :status :response-time ms - :res[content-length]`))
app.use(logger(`:remote-addr :remote-user :method :url :status :response-time ms - :res[content-length] :user-agent`))

app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
Expand Down

0 comments on commit 0f01c26

Please sign in to comment.