Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
How to Debug Cloud Function? functions.logger.log not Working

When user update chat/{id} documents, this function will execute.

const functions = require("firebase-functions");

exports.onChangedChat = functions.firestore
.document('chat/{id}')
.onWrite((change, context) => {
    functions.logger.log("START!!!");
    
    ... some code ...
});

However, the function ends with error. So now I'm trying to find the cause of the error but functions.logger.log isn't displayed in Firebase Console.

About above example. When the function is called, Log "START!!!" should displayed. Just shows me like below:

onChangedChat: Function execution started

onChangedChat: Function execution took 16 ms. Finished with status: error

Where is "START!!!"?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If errors occurs, all logs won't displayed. After commented out ... some code ..., functions.logger.log() worked.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!