summaryrefslogtreecommitdiff
path: root/src/caelestia
diff options
context:
space:
mode:
authorSoramane <61896496+soramanew@users.noreply.github.com>2025-07-25 11:41:58 +1000
committerSoramane <61896496+soramanew@users.noreply.github.com>2025-07-25 11:41:58 +1000
commit2bde2ddfbf56277fbf93af96fe3a88cb042b6696 (patch)
tree4ffdee43854fe567c73d99d584048f133198fd10 /src/caelestia
parentrecord: don't use hevc codec (diff)
downloadcaelestia-cli-2bde2ddfbf56277fbf93af96fe3a88cb042b6696.tar.gz
caelestia-cli-2bde2ddfbf56277fbf93af96fe3a88cb042b6696.tar.bz2
caelestia-cli-2bde2ddfbf56277fbf93af96fe3a88cb042b6696.zip
shell: fix log when no log rules
also fix nix devshell
Diffstat (limited to 'src/caelestia')
-rw-r--r--src/caelestia/subcommands/shell.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/caelestia/subcommands/shell.py b/src/caelestia/subcommands/shell.py
index 68a6821..06f3b45 100644
--- a/src/caelestia/subcommands/shell.py
+++ b/src/caelestia/subcommands/shell.py
@@ -44,7 +44,10 @@ class Command:
print(self.shell("ipc", "show"), end="")
def print_log(self) -> None:
- log = self.shell("log", "-r", self.args.log_rules)
+ if self.args.log_rules:
+ log = self.shell("log", "-r", self.args.log_rules)
+ else:
+ log = self.shell("log")
# FIXME: remove when logging rules are added/warning is removed
for line in log.splitlines():
if self.filter_log(line):