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