add logging for file downloads

This commit is contained in:
Andrew 2022-01-13 00:56:32 -05:00
parent 362f16fec4
commit 3a3ee52f5c

View File

@ -10,6 +10,7 @@ import datetime
import os
import shutil
import tempfile
import threading
from tornado import locale
from tornado import iostream
@ -769,6 +770,7 @@ class PanelHandler(BaseHandler):
self.redirect("/panel/server_detail?id={}&subpage=files".format(server_id))
elif page == "support_logs":
logger.info("Support logs requested. Packinging logs for user with ID: {}".format(exec_user_id))
tempDir = tempfile.mkdtemp()
tempZipStorage = tempfile.mkdtemp()
full_temp = os.path.join(tempDir, 'support_logs')