Skip to content

Commit 30bb534

Browse files
committed
show system info only in debug mode
1 parent 6bd5276 commit 30bb534

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ def download(job_id):
511511
@app.route("/system-info")
512512
def system_info():
513513
app.logger.info("System info requested")
514+
if not app.debug:
515+
return "Not Found", 404
514516

515517
info = {
516518
"calibre_version": "Unknown",

0 commit comments

Comments
 (0)