Skip to content

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

Description

@DominicKramer

Environment details

  • OS: OS X
  • Node.js version: v6.9.4
  • npm version: 3.10.10
  • google-cloud-node version: @google-cloud/[email protected]

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!'));

Activity

  1. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Apr 19, 2017
  2. added a commit that references this issue on Apr 20, 2017
    e3341bc
  3. removed
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Apr 20, 2017
  4. added 2 commits that reference this issue on Jan 14, 2026
    60c7c4b
    2f34dc8
  5. added a commit that references this issue on Feb 5, 2026
    5a83585
  6. added a commit that references this issue on Feb 23, 2026
    0bd4b7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions