fix: system_all_log.html ReferenceError and other updates
This commit is contained in:
@@ -3,6 +3,7 @@ import platform
|
||||
import shutil
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
import traceback
|
||||
import zipfile
|
||||
|
||||
@@ -110,7 +111,8 @@ class PluginManager:
|
||||
|
||||
F.logger.debug(plugins)
|
||||
for plugin_name in plugins:
|
||||
F.logger.debug(f'[+] PLUGIN LOADING Start.. [{plugin_name}]')
|
||||
F.logger.info(f'[+] PLUGIN IMPORT Start.. [{plugin_name}]')
|
||||
import_start_time = time.time()
|
||||
entity = cls.all_package_list[plugin_name]
|
||||
try:
|
||||
try:
|
||||
@@ -129,6 +131,9 @@ class PluginManager:
|
||||
F.app.register_blueprint(mod_blue_print)
|
||||
except Exception as exception:
|
||||
F.logger.warning(f'[!] BLUEPRINT not exist : [{plugin_name}]')
|
||||
|
||||
import_elapsed_time = time.time() - import_start_time
|
||||
F.logger.info(f'[+] PLUGIN IMPORT End.. [{plugin_name}] ({import_elapsed_time:.3f}s)')
|
||||
cls.plugin_list[plugin_name] = entity
|
||||
except Exception as e:
|
||||
F.logger.error(f"Exception:{str(e)}")
|
||||
@@ -155,9 +160,11 @@ class PluginManager:
|
||||
if mod_plugin_load:
|
||||
def func(mod_plugin_load, key):
|
||||
try:
|
||||
#F.logger.debug(f'[!] plugin_load_celery threading start : [{key}]')
|
||||
load_start_time = time.time()
|
||||
F.logger.info(f'[!] plugin_load_celery threading start : [{key}]')
|
||||
mod_plugin_load()
|
||||
#F.logger.debug(f'[!] plugin_load_celery threading end : [{key}]')
|
||||
load_elapsed_time = time.time() - load_start_time
|
||||
F.logger.info(f'[!] plugin_load_celery threading end : [{key}] ({load_elapsed_time:.3f}s)')
|
||||
except Exception as e:
|
||||
F.logger.error(f"Exception:{str(e)}")
|
||||
F.logger.error(traceback.format_exc())
|
||||
@@ -177,9 +184,11 @@ class PluginManager:
|
||||
if mod_plugin_load:
|
||||
def func(mod_plugin_load, key):
|
||||
try:
|
||||
load_start_time = time.time()
|
||||
F.logger.info(f'[!] plugin_load threading start : [{key}]')
|
||||
mod_plugin_load()
|
||||
F.logger.debug(f'[!] plugin_load threading end : [{key}]')
|
||||
load_elapsed_time = time.time() - load_start_time
|
||||
F.logger.info(f'[!] plugin_load threading end : [{key}] ({load_elapsed_time:.3f}s)')
|
||||
except Exception as e:
|
||||
F.logger.error('### plugin_load exception : %s', key)
|
||||
F.logger.error(f"Exception:{str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user