Development

This commit is contained in:
Matthew Grotke 2026-06-09 11:37:48 -04:00
parent e4a9d5c038
commit bf4e7175cb
4 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@ def _dnsblocking_log_tail(cfg):
with open(DNS_LOG_FILE) as f:
lines = f.readlines()
if not lines:
return '(log is empty)', ''
return '(no log entries yet)', ''
total = len(lines)
tail = lines[-DNS_LOG_MAX:]
shown = len(tail)
@ -31,7 +31,7 @@ def _dnsblocking_log_tail(cfg):
)
return ''.join(tail).strip(), summary
except FileNotFoundError:
return '(log file not found)', ''
return '(no log entries yet)', ''
except Exception:
return '(error reading log)', ''