Skip to content

Logs are not displayed when running supabase functions serve #3006

Closed
@HayattiQ

Description

Describe the bug
I’ve encountered an issue where no logs are output to the console when using the supabase functions serve command. It makes it difficult to debug functions since there is no immediate feedback about what is happening inside the function.

To Reproduce
Steps to reproduce the behavior:
Write a simple function that contains logging (e.g., console.log('test log')).
Run supabase functions serve.
Invoke the function (for example, via curl or through your application).
Observe that no logs appear in the console, even though the function is being executed

Expected behavior
The console should display the logs produced by the function (e.g., console.log, console.error, etc.), making it possible to debug the code.

Screenshots
v2.1.1
スクリーンショット 2025-01-02 175125

v2.2.1
スクリーンショット 2025-01-02 175207

System information
Rerun the failing command with --create-ticket flag.

  • Version of OS: [Ubuntu 22.04]
  • Version of CLI: [v2.2.1]

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions