Only try to authenticate if reporting is enabled. #550
Labels
api: clouderrorreporting
Issues related to the googleapis/nodejs-error-reporting API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
When running this package locally with
reportMode: 'never'
which prevents any reporting but we still get an console message about not being able to find credential information because when creating the error reporting client authentication is still attempted.Would it be possible for a similar check be put in before attempting this (both API key and obtaining an access token)?
The text was updated successfully, but these errors were encountered: