Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error logging example #930

Merged
merged 15 commits into from
Mar 2, 2019
1 change: 1 addition & 0 deletions functions/helloworld/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ exports.helloError = (event, callback) => {
// [START functions_helloworld_error]
// These WILL be reported to Stackdriver Error Reporting
console.error(new Error('I failed you'));
console.error('I failed you', new Error('I failed you too'));
throw new Error('I failed you'); // Will cause a cold start if not caught

// [END functions_helloworld_error]
Expand Down