Skip to content

Commit

Permalink
feat: optional gitea debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BoYanZh committed Sep 15, 2024
1 parent cdc86c5 commit 0b50495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions joint_teapot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Settings(BaseSettings):
gitea_suffix: str = "/git"
gitea_access_token: str = ""
gitea_org_name: str = ""
gitea_debug: bool = False

# git
git_host: str = "ssh://[email protected]:2222"
Expand Down
2 changes: 1 addition & 1 deletion joint_teapot/workers/gitea.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(
configuration = focs_gitea.Configuration()
configuration.api_key["access_token"] = access_token
configuration.host = f"https://{domain_name}{suffix}/api/v1"
configuration.debug = True
configuration.debug = settings.gitea_debug
for v in configuration.logger.values():
v.handlers = []
self.api_client = focs_gitea.ApiClient(configuration)
Expand Down

0 comments on commit 0b50495

Please sign in to comment.