Skip to content

Commit

Permalink
Merge a0841e4 into 89614cb
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern committed Jul 3, 2019
2 parents 89614cb + a0841e4 commit 189eaf0
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 165 deletions.
3 changes: 2 additions & 1 deletion changelog.txt
Expand Up @@ -2,4 +2,5 @@
* Make `functions:shell` respect the `--port` argument.
* Improve error message when `firebase serve` can't acquire the right port.
* Allow running the Firestore and RTDB emulators without a configuration.
* Allow the Firestore emulator to give more information about invalid rulesets.
* Allow the Firestore emulator to give more information about invalid rulesets.
* 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 189eaf0

Please sign in to comment.