From 7775cdc6a247738ba40adfb6c0173f0896a7df55 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Sun, 19 May 2024 13:42:22 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index c68279f..5305ddc 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -22,6 +22,10 @@ import time import traceback +logger = logging.getLogger(__name__) +logger.setLevel(logigng.INFO) + + def custom_notify( title=None, msg=None, @@ -1141,7 +1145,7 @@ def http_server(argv): else: path = options.token - print( + logger.info( 'access url is http://%s:%d/%s/' % ( options.host, options.port,