Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quiet logging for emulators:exec #2390

Open
samtstern opened this issue Jun 22, 2020 · 2 comments
Open

Quiet logging for emulators:exec #2390

samtstern opened this issue Jun 22, 2020 · 2 comments

Comments

@samtstern
Copy link
Contributor

samtstern commented Jun 22, 2020

See previous discussion here:
firebase/firebase-android-sdk#1690

For serve and emulators:start the UI is where we're going to improve logging. But for exec we should probably:

  • Quiet all debug/verbose logging by default
  • Consider preserving firebase-debug.log so that logs can be expected later

cc @filipesilva @abeisgoat

@gusaiani
Copy link

+1

@davdroman
Copy link

davdroman commented Oct 27, 2020

I have the same need. Here's my workaround I use in scripts for those interested.

#!/usr/bin/env bash
> out.log
tail -f out.log &
trap "kill $!" EXIT
firebase emulators:exec --non-interactive 'some_command | tee out.log; exit ${PIPESTATUS[0]}' &>/dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants