Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit ed64096

Browse files
committed
Enhance LogFileHandler to support additional log file request formats
1 parent 32917c9 commit ed64096

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def send_notification(self):
402402

403403
class LogFileHandler(RequestHandler):
404404
def get(self, filename: str):
405-
if filename == "logs":
405+
if filename == "logs" or filename == "logs/" or filename == "":
406406
try:
407407
files = [f for f in natsorted(os.listdir("logs")) if f.endswith(".log")]
408408
html = "<html><body><h1>Log Files</h1><ul>"

0 commit comments

Comments
 (0)