Skip to content

logger.error prints the stacktrace of line where it was invoked #1681

Open
@orestesgaolin

Description

@orestesgaolin

Related issues

Somewhat related to:

[REQUIRED] Version info

node: 20

firebase-functions: 6.2.0

firebase-tools: 13.30.0

firebase-admin: 12.6.0

[REQUIRED] Test case

import { logger } from "firebase-functions/v2";
import { onCall } from "firebase-functions/v2/https";

export const functionName = onCall({region: ["europe-west1"]}, async (req) => {
  logger.error("User is not allowed to upload data for this userId", [ "234", "123" ]);
})

[REQUIRED] Steps to reproduce

[REQUIRED] Expected behavior

Error stacktrace should not be printed in plain text if not provided

[REQUIRED] Actual behavior

Code sample above results with following outcome in GCP Logging:

Image

Were you able to successfully deploy your functions?

Yes

Activity

google-oss-bot

google-oss-bot commented on Mar 19, 2025

@google-oss-bot
Collaborator

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

CorieW

CorieW commented on Mar 20, 2025

@CorieW
Member

Hi @orestesgaolin,

Thanks for reporting this issue! We’ve received it and are reviewing it. We’ll provide updates as soon as possible.

CorieW

CorieW commented on Mar 21, 2025

@CorieW
Member

I'll bring this up with the team.

moved this from Needs Triage to Triaged in [Cloud] Extensions + Functionson May 1, 2025
moved this from Triaged to Blocked in [Cloud] Extensions + Functionson May 7, 2025
moved this from Blocked to In Progress in [Cloud] Extensions + Functionson Jun 9, 2025
self-assigned this
on Jun 9, 2025
moved this from In Progress to Internal review in [Cloud] Extensions + Functionson Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @orestesgaolin@google-oss-bot@CorieW

    Issue actions

      logger.error prints the stacktrace of line where it was invoked · Issue #1681 · firebase/firebase-functions