Skip to content

Add timestamps to stdout logs #160

@birm

Description

@birm

Right now, we just see messages, e.g.

TokenExpiredError: jwt expired
    at /src/node_modules/jsonwebtoken/verify.js:190:21
    at getSecret (/src/node_modules/jsonwebtoken/verify.js:97:14)
    at module.exports [as verify] (/src/node_modules/jsonwebtoken/verify.js:101:10)
    at /src/handlers/authHandlers.js:194:11
    at Layer.handle [as handle_request] (/src/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/src/node_modules/express/lib/router/index.js:328:13)
    at /src/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/src/node_modules/express/lib/router/index.js:346:12)
    at next (/src/node_modules/express/lib/router/index.js:280:10)
    at SendStream.error (/src/node_modules/serve-static/index.js:121:7) {
  expiredAt: 2023-07-22T15:05:25.000Z
}

We should include a timestamp of the request itself!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions