Skip to content

The default log level for the error-reporting library is not set to WARN #2236

@DominicKramer

Description

@DominicKramer

Environment details

  • OS: OS X
  • Node.js version: v6.9.4
  • npm version: 3.10.10
  • google-cloud-node version: @google-cloud/error-reporting@0.1.0

Steps to reproduce

Provided the NODE_ENV environment variable is not set to production, the following code should print a message to standard out stating that the NODE_ENV environment variable needs to be set to production or the ignoreEnvironmentCheck needs to be set to true. However, nothing is printed to standard out.

var errors = require('@google-cloud/error-reporting')({
  serviceContext: {service: 'my-service'}
});
errors.report(new Error('Something broke!'));

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions