Skip to content

Firebase Auth emulator doesn't produce any logs or logs files #5505

@afregeau

Description

@afregeau

[REQUIRED] Environment info

firebase-tools:
11.22.0

Platform:
Windows 11

[REQUIRED] Test case

Launch auth emulator, perform any auth operation.

[REQUIRED] Steps to reproduce

Start a suite of emulators, including auth. Perform any auth operation. Observe no auth logs created. Observe no auth logs file created.
In this scenario, I:

  • Created a user from the emulator (which triggers my cloud function .onCreate(), and IS shown in the function logs.
  • Logged into that user from the android device

[REQUIRED] Expected behavior

Any auth logs should be created

[REQUIRED] Actual behavior

No auth logs are created.

image

12:21:27
I
ui
Emulator UI logging to ui-debug.log
12:21:28
I
functions
Watching "C:\MicroTraksSource\Firebase\functions" for Cloud Functions...
12:21:29
W
!  functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.
12:21:29
W
!  functions: Please note that there will be breaking changes when you upgrade.
12:21:29
I
+  functions: Using node@18 from host.
12:21:29
I
functions
Loaded functions definitions from source: helloWorld, newUserSignup.
12:21:29
I
functions
http function initialized (http://127.0.0.1:5001/microtraks/us-central1/helloWorld).
12:21:29
I
functions
auth function initialized.
12:21:29
I

┌─────────────────────────────────────────────────────────────┐
│ ✔  All emulators ready! It is now safe to connect your app. │
│ i  View Emulator UI at http://127.0.0.1:4000/               │
└─────────────────────────────────────────────────────────────┘

┌────────────────┬──────────────┬─────────────────────────────────┐
│ Emulator       │ Host:Port    │ View in Emulator UI             │
├────────────────┼──────────────┼─────────────────────────────────┤
│ Authentication │ 0.0.0.0:9099 │ http://127.0.0.1:4000/auth      │
├────────────────┼──────────────┼─────────────────────────────────┤
│ Functions      │ 0.0.0.0:5001 │ http://127.0.0.1:4000/functions │
├────────────────┼──────────────┼─────────────────────────────────┤
│ Firestore      │ 0.0.0.0:8080 │ http://127.0.0.1:4000/firestore │
├────────────────┼──────────────┼─────────────────────────────────┤
│ Database       │ 0.0.0.0:9000 │ http://127.0.0.1:4000/database  │
├────────────────┼──────────────┼─────────────────────────────────┤
│ Storage        │ 0.0.0.0:9199 │ http://127.0.0.1:4000/storage   │
├────────────────┼──────────────┼─────────────────────────────────┤
│ Eventarc       │ 0.0.0.0:9299 │ n/a                             │
└────────────────┴──────────────┴─────────────────────────────────┘
  Emulator Hub running at 127.0.0.1:4400
  Other reserved ports: 4500, 9150

Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.
 
12:22:24
I
function[us-central1-newUserSignup]
Beginning execution of "newUserSignup"
12:22:24
I
function[us-central1-newUserSignup]
{
  "structuredData": true,
  "severity": "INFO",
  "message": "New user created"
}
12:22:25
I
function[us-central1-newUserSignup]
Finished "newUserSignup" in 687.5818ms

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions