fix logging
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
"""Tools for Gitea issue operations."""
|
||||
|
||||
import json
|
||||
import logging
|
||||
from typing import Any
|
||||
from gitea.client import GiteaClient
|
||||
from gitea.models import IssueModel, CommentModel, LabelModel
|
||||
|
||||
logger: logging.Logger = logging.getLogger("gitea.tools.issue_tools")
|
||||
|
||||
|
||||
|
||||
class IssueTools:
|
||||
"""Tools for Gitea issue operations."""
|
||||
@@ -69,7 +73,7 @@ class IssueTools:
|
||||
all_issues.extend([issue.model_dump() if hasattr(issue, 'model_dump') else issue for issue in issues])
|
||||
return all_issues
|
||||
except Exception as e:
|
||||
print(f"DEBUG: list_assigned_issues error: {e}")
|
||||
logger.error(f"Error listing assigned issues: {e}", exc_info=True)
|
||||
return []
|
||||
|
||||
def list_issues(self, owner: str, repo: str, state: str = "open") -> str:
|
||||
|
||||
Reference in New Issue
Block a user