Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

200
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda