mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 23:09:27 -05:00
shell: fix log when no log rules
also fix nix devshell
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user