Closed jhuleatt closed 3 years ago
The logs in https://github.com/messagebird/firestore-send-msg/blob/master/functions/src/log.ts use console.warn and console.info. This will result in objects being displayed as multiple separate log entries, which are hard to read (some more detail here).
console.warn
console.info
Instead, use the Cloud Functions logger SDK. Example:
Instead of:
console.info(`INFO: firestore-messagebird-send-msg: ${msg}`, ...rest);
Use:
import { logger } from 'firebase-functions'; // .... logger.info(`INFO: firestore-messagebird-send-msg: ${msg}`, ...rest);
Here's an example from a Firebase-made extension.
The logs in https://github.com/messagebird/firestore-send-msg/blob/master/functions/src/log.ts use
console.warn
andconsole.info
. This will result in objects being displayed as multiple separate log entries, which are hard to read (some more detail here).Instead, use the Cloud Functions logger SDK. Example:
Instead of:
Use:
Here's an example from a Firebase-made extension.