Skip to content

Commit

Permalink
refactor: updates logging to import log logic from trestle
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Aug 28, 2023
1 parent 1d24f1d commit 2626bf1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 138 deletions.
2 changes: 1 addition & 1 deletion trestlebot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from trestlebot.tasks.base_task import TaskBase, TaskException


logger = logging.getLogger("trestle")
logger = logging.getLogger(__name__)


class RepoException(Exception):
Expand Down
6 changes: 4 additions & 2 deletions trestlebot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
import sys
from typing import List, Optional

from trestlebot import bot, const, log
import trestle.common.log as log

from trestlebot import bot, const
from trestlebot.github import GitHub, is_github_actions
from trestlebot.gitlab import GitLab, get_gitlab_root_url, is_gitlab_ci
from trestlebot.provider import GitProvider
Expand All @@ -32,7 +34,7 @@
from trestlebot.tasks.regenerate_task import RegenerateTask


logger = logging.getLogger("trestle")
logger = logging.getLogger(__name__)


def _parse_cli_arguments() -> argparse.Namespace:
Expand Down
134 changes: 0 additions & 134 deletions trestlebot/log.py

This file was deleted.

2 changes: 1 addition & 1 deletion trestlebot/tasks/authored/ssp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
)


logger = logging.getLogger("trestle")
logger = logging.getLogger(__name__)


class SSPIndex:
Expand Down

0 comments on commit 2626bf1

Please sign in to comment.