mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-18 00:35:36 +00:00
FIX config.enc
This commit is contained in:
parent
27d49cf5cc
commit
310c47162c
@ -46,13 +46,13 @@ if args.config:
|
|||||||
config_provider = ConfigProvider(config_path)
|
config_provider = ConfigProvider(config_path)
|
||||||
config = config_provider.open_config()
|
config = config_provider.open_config()
|
||||||
builtins.config = config
|
builtins.config = config
|
||||||
|
config.enc = config.Options['encoding']
|
||||||
if config.Options['debug'] is True:
|
if config.Options['debug'] is True:
|
||||||
utils.set_debug_status()
|
utils.set_debug_status()
|
||||||
log.info("Debug enabled!")
|
log.info("Debug enabled!")
|
||||||
log = get_logger("core.init")
|
log = get_logger("core.init")
|
||||||
log.debug("Debug mode enabled!")
|
log.debug("Debug mode enabled!")
|
||||||
log.debug(f"Server config: {config}")
|
log.debug(f"Server config: {config}")
|
||||||
config.enc = config.Options['encoding']
|
|
||||||
# i18n init
|
# i18n init
|
||||||
log.debug("Initializing i18n...")
|
log.debug("Initializing i18n...")
|
||||||
ml = MultiLanguage()
|
ml = MultiLanguage()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user