Skip to content

Commit

Permalink
Cleanup logging & test script
Browse files Browse the repository at this point in the history
  • Loading branch information
imranariffin committed Nov 27, 2023
1 parent 372df3a commit cb108cb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions src/aiotaskq/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#!/usr/bin/env python

import logging
import typing as t

import typer
Expand All @@ -11,8 +10,6 @@
from .interfaces import ConcurrencyType
from .worker import Defaults, run_worker_forever

logging.basicConfig(level=logging.DEBUG)

cli = typer.Typer()


Expand Down
1 change: 0 additions & 1 deletion src/aiotaskq/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
RT = t.TypeVar("RT")
P = t.ParamSpec("P")

# logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion src/aiotaskq/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from .serde import Serialization
from .task import AsyncResult, Task

# logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)


Expand Down
5 changes: 2 additions & 3 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# pip install --upgrade pip
# pip install -e .[dev]

coverage erase

if [ -z $1 ];
then
pip install --upgrade pip
pip install -e .[dev]
coverage run -m pytest -v
else
coverage run -m pytest --log-level=DEBUG --log-cli-level=DEBUG -s -vvv -k $1
Expand Down

0 comments on commit cb108cb

Please sign in to comment.