Skip to content

Server logging in production #489

Closed
Closed
@francisli

Description

@francisli

Nature of issue?

  • Found a bug
  • Existing feature enhancement
  • New feature request

Details about the bug:

In requestsOfType.js there are some active console.log statements printing the entire request object, which can leak sensitive info (i.e. you'll see passwords sent during registration, etc). If you're actively debugging something in the production environment, I'd suggest introducing a logging library like Winston (https://github.com/winstonjs/winston) that you can control with a log-level environment variable so it's easy to turn on and off.

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