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

Allow Logging Level to be configured via Environment Variable for gitlab_webhook.py #1592

Open
oliveyip opened this issue Feb 28, 2025 · 2 comments
Labels
general good first issue Good for newcomers

Comments

@oliveyip
Copy link

oliveyip commented Feb 28, 2025

Issues details

Summary

I'm currently using the docker image codiumai/pr-agent:0.26-gitlab_webhook

I'm trying to set the logging level using an environment variable, but found that it doesn't change the logging level in the service.

Problem

Right now, the logging configuration in pr-agent webhook is set up in a way that either ignores the provided environment variable and defaults to the "DEBUG" level even if LOG_LEVEL is set (e.g. to "ERROR").

Requested Fix

Have pr_agent/servers/gitlab_webhook.py#L22 line set up like it does in pr_agent/cli.py#L10.

@oliveyip oliveyip added the general label Feb 28, 2025
@mrT23 mrT23 added the good first issue Good for newcomers label Mar 1, 2025
@mrT23
Copy link
Collaborator

mrT23 commented Mar 1, 2025

You are welcome to open a PR to address this.
add support also for github app

@DangHung301
Copy link

hello @oliveyip, I also trying to run pr-agent using gitlab webhooks using docker but I have issue #1600, Can you tell me what error I am facing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants