Add explicit `piker.cli` logger name for `pikerd`

basic_buy_bot
Tyler Goodlet 2023-06-24 17:24:05 -04:00
parent efd52e8ce3
commit cbe364cb62
1 changed files with 7 additions and 7 deletions

View File

@ -39,7 +39,7 @@ from ..service import (
from .. import config
log = get_logger('cli')
log = get_logger('piker.cli')
@click.command()
@ -71,16 +71,14 @@ def pikerd(
Spawn the piker broker-daemon.
'''
from .. import service
log = get_console_log(loglevel)
log = get_console_log(loglevel, name='cli')
if pdb:
log.warning((
"\n"
"!!! You have enabled daemon DEBUG mode !!!\n"
"If a daemon crashes it will likely block"
" the service until resumed from console!\n"
"!!! YOU HAVE ENABLED DAEMON DEBUG MODE !!!\n"
"When a `piker` daemon crashes it will block the "
"task-thread until resumed from console!\n"
"\n"
))
@ -91,6 +89,8 @@ def pikerd(
int(port) or _default_registry_port,
)
from .. import service
async def main():
service_mngr: service.Services