Whenever a user updates the chat/{id}
documents, this function is triggered.
const functions = require("firebase-functions");
exports.onChangedChat = functions.firestore
.document('chat/{id}')
.onWrite((change, context) => {
functions.logger.log("START!!!");
... some code ...
});
Unfortunately, the function is encountering an error. I am currently investigating the cause of this error, but strangely, the output of functions.logger.log
does not appear in Firebase Console.
In the example above, when the function is called, it should display the log message "START!!!"
. However, only generic messages like below are shown:
onChangedChat: Function execution started
onChangedChat: Function execution took 16 ms. Finished with status: error
Where did "START!!!"
go?