mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
add logging for file downloads
This commit is contained in:
parent
362f16fec4
commit
3a3ee52f5c
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user