Skip to content

Commit

Permalink
Merge 6bf6372 into c871443
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern committed Jul 11, 2019
2 parents c871443 + 6bf6372 commit bb18aaf
Show file tree
Hide file tree
Showing 4 changed files with 255 additions and 170 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Expand Up @@ -9,3 +9,4 @@
* Update functions init templates to `v3.1.0`
* Fix emulation of https functions.
* Fix bug where calling `clearFirestoreData` against the Firestore Emulator fails if more than 500 documents exist.
* Fixes a bug where `admin.firestore()` and `app.firestore()` behaved differently.
6 changes: 5 additions & 1 deletion src/emulator/functionsEmulator.ts
Expand Up @@ -387,7 +387,11 @@ You can probably fix this by running "npm install ${
EmulatorLogger.log("USER", `${clc.blackBright("> ")} ${log.text}`);
break;
case "DEBUG":
EmulatorLogger.log("DEBUG", log.text);
if (log.data && log.data !== {}) {
EmulatorLogger.log("DEBUG", `[${log.type}] ${log.text} ${JSON.stringify(log.data)}`);
} else {
EmulatorLogger.log("DEBUG", `[${log.type}] ${log.text}`);
}
break;
case "INFO":
EmulatorLogger.logLabeled("BULLET", "functions", log.text);
Expand Down

0 comments on commit bb18aaf

Please sign in to comment.