From 445a9b46c374e9b860b03f9c47993ee768c11352 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Wed, 20 Mar 2024 23:33:06 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index a974406..f272ad0 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -1466,7 +1466,8 @@ def pm_service(argv): cmd = None if 'powerd' in line: cmd = line - print(cmd) + if options.verbose: + logging.error(json.dumps(dict(line=cmd))) #cmd = subprocess.check_output(r''' # log stream | grep --line-buffered -i \