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

Excessive logs being printed to STD OUT/ERR #777

Open
basheer-taplane opened this issue Jan 17, 2024 · 1 comment
Open

Excessive logs being printed to STD OUT/ERR #777

basheer-taplane opened this issue Jan 17, 2024 · 1 comment

Comments

@basheer-taplane
Copy link

basheer-taplane commented Jan 17, 2024

Hi team,

We gather logs from the container's standard output (STD) and send them to GRAYLOG. Despite logging everything to STD OUT/ERR during the application's execution, there is currently no mechanism to selectively determine what should be logged. For instance, the log level specified in prod.exs remains static because the runner.exs does not override and cannot be modified with the Docker image. It would be highly beneficial if a dynamic option were available to adjust the log level, providing greater flexibility. Your consideration of implementing such an option is greatly appreciated.

config :logger,

https://github.com/supabase/realtime/blob/7f3aa938e4d3fe6a02f1901facb0a90090df860d/config/prod.exs#L16-L19C1

@filipecabaco
Copy link
Contributor

The change makes sense! I will try to add a new environment variable set the log level soonish 👍

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

No branches or pull requests

2 participants