feat: Add Docker support and debug logging for plugin initialization.

This commit is contained in:
2026-01-01 22:57:40 +09:00
parent 97d203cb86
commit 3a9765f7ea
5 changed files with 95 additions and 5 deletions

View File

@@ -25,6 +25,7 @@ class PluginBase(object):
def __init__(self, setting):
try:
logger1.debug(f"[DEBUG] PluginBase init for {setting.get('filepath')}")
is_system = ('system' == os.path.basename(os.path.dirname(setting['filepath'])))
self.status = ""
self.setting = setting
@@ -41,6 +42,7 @@ class PluginBase(object):
self.logger = F.get_logger(self.package_name)
self.blueprint = Blueprint(self.package_name, self.package_name, url_prefix=f'/{self.package_name}', template_folder=os.path.join(os.path.dirname(setting['filepath']), 'templates'), static_folder=os.path.join(os.path.dirname(setting['filepath']), 'static'))
self.menu = setting['menu']
logger1.debug(f"[DEBUG] Menu set for {self.package_name}: {self.menu}")
self.setting_menu = setting.get('setting_menu', None)
self.ModelSetting = None