main.py: mod loader now prints start_on_boot option on module loading stage

This commit is contained in:
dymik739 2022-10-24 19:40:24 +03:00
parent 3a5999945e
commit 30f53c08d4
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class ModuleControlUnit:
self.modules.append( ModuleV1( "modules/{}/".format(folder), code, enabled, alias ) )
print("[INFO] reload_modules: successfully loaded {} as {}".format(folder, alias))
print("[INFO] reload_modules: successfully loaded {} as {} (start_on_boot: {})".format(folder, alias, enabled))
else:
print("[WARN] reload_modules: module {} requires unsupported version ({} > 1), skipping...".format(folder, meta["version"]))
except Exception as e:
@ -122,7 +122,7 @@ class ModuleControlUnit:
self.modules.append( ModuleV1( code, enabled, alias ) )
print("[INFO] reload_modules: successfully loaded {} as {}".format(folder_name, alias))
print("[INFO] reload_modules: successfully loaded {} as {} (start_on_boot: {})".format(folder_name, alias, enabled))
else:
print("[WARN] reload_modules: module {} requires unsupported version ({} > 1), skipping...".format(folder_name, meta["version"]))
except Exception as e: