Skip to content

Commit c76729c

Browse files
committed
#93 Remove All Print message
change logging level to info & message formate as requested
1 parent ac96ea1 commit c76729c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/worker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
1010

11-
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
11+
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
1212

1313
REDIS_QUEUE_HOST = settings.REDIS_QUEUE_HOST
1414
REDIS_QUEUE_PORT = settings.REDIS_QUEUE_PORT
@@ -22,11 +22,11 @@ async def sample_background_task(ctx: Worker, name: str) -> str:
2222

2323
# -------- base functions --------
2424
async def startup(ctx: Worker) -> None:
25-
logging.debug('Worker Started')
25+
logging.info('Worker Started')
2626

2727

2828
async def shutdown(ctx: Worker) -> None:
29-
logging.debug("Worker end")
29+
logging.info("Worker end")
3030

3131

3232
# -------- class --------

0 commit comments

Comments
 (0)