Search code examples
firebasefirebase-tools

Firebase emulator prevent log window from opening


When I run the firebase emulators:start command on Windows 10, it opens up a console with what looks like a java program outputting log events from the emulator suite. Is there any way to prevent this window from opening?

Thanks!

edit: This window doesn't even close after emulators:exec finishes its command, preventing a proper cleanup.


Solution

  • First of all , this link can help you on how to shutdown correctly the JVMs: Shut down JVM when Firebase emulator closes Since you're talking about Java console , then you should use javaw.exe instead of java.exe ! Javaw prevents logs from appearing in console . I'm not an expert of firebase but I believe there's a config file in which there's a call to Java binary which launches the JVM and finally change the java by javaw