Skip to content

Commit

Permalink
Merge 4a980bb into 62a7fcb
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall committed Jun 7, 2019
2 parents 62a7fcb + 4a980bb commit 17fffb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.txt
@@ -1 +1,2 @@
* Set FIRESTORE_EMULATOR_HOST env var in "emulators:exec".
* Fixes bug in printing Function logs when the text payload was undefined.
6 changes: 3 additions & 3 deletions src/commands/functions-log.ts
Expand Up @@ -46,9 +46,9 @@ module.exports = new Command("functions:log")
const entry = entries[i];
logger.info(
entry.timestamp,
entry.severity.substring(0, 1),
entry.resource.labels.function_name + ":",
entry.textPayload
_.get(entry, "severity", "?").substring(0, 1),
_.get(entry, "resource.labels.function_name") + ":",
_.get(entry, "textPayload", "")
);
}
if (_.isEmpty(entries)) {
Expand Down

0 comments on commit 17fffb7

Please sign in to comment.