diff --git a/docker/routlin-dash/app/pages/ddns/view.py b/docker/routlin-dash/app/pages/ddns/view.py index 0ded9c1..eb00568 100644 --- a/docker/routlin-dash/app/pages/ddns/view.py +++ b/docker/routlin-dash/app/pages/ddns/view.py @@ -25,7 +25,7 @@ def _ddns_log_tail(): with open(log_path) as f: lines = f.readlines() if not lines: - return '(log is empty)', '' + return '(no log entries yet)', '' total = len(lines) tail = lines[-DDNS_LOG_MAX:] shown = len(tail) @@ -39,7 +39,7 @@ def _ddns_log_tail(): ) return ''.join(tail).strip(), summary except FileNotFoundError: - return '(log file not found)', '' + return '(no log entries yet)', '' except Exception: return '(error reading log)', '' diff --git a/docker/routlin-dash/app/pages/dnsblocking/view.py b/docker/routlin-dash/app/pages/dnsblocking/view.py index db74473..21ff75d 100644 --- a/docker/routlin-dash/app/pages/dnsblocking/view.py +++ b/docker/routlin-dash/app/pages/dnsblocking/view.py @@ -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)', '' diff --git a/docker/routlin-dash/app/pages/radius/action.py b/docker/routlin-dash/app/pages/radius/action.py index 45caa5c..9960265 100644 --- a/docker/routlin-dash/app/pages/radius/action.py +++ b/docker/routlin-dash/app/pages/radius/action.py @@ -275,7 +275,7 @@ def api_log_tail(): lines = (prev[-need:] if need and prev else []) + current if not lines: - return jsonify({'log': '(log is empty)', 'left': '', 'right': ''}) + return jsonify({'log': '(no log entries yet)', 'left': '', 'right': ''}) log_dir = os.path.dirname(RADIUS_LOG_FILE) try: diff --git a/docker/routlin-dash/app/pages/radius/view.py b/docker/routlin-dash/app/pages/radius/view.py index beabd75..97b8ee2 100644 --- a/docker/routlin-dash/app/pages/radius/view.py +++ b/docker/routlin-dash/app/pages/radius/view.py @@ -32,7 +32,7 @@ def radius_log_tail(cfg): lines = (prev[-need:] if need and prev else []) + current if not lines: - return '(log is empty)', '' + return '(no log entries yet)', '' log_dir = os.path.dirname(RADIUS_LOG_FILE) try: