commit
85fcda93b2
3 changed files with 4 additions and 6 deletions
|
@ -60,7 +60,6 @@ func _init() -> void:
|
||||||
# Logger
|
# Logger
|
||||||
logger_level = CoreTypes.LoggerLevel.INFO
|
logger_level = CoreTypes.LoggerLevel.INFO
|
||||||
logger_colored = true
|
logger_colored = true
|
||||||
logger_detect_verbose_mode = false
|
|
||||||
logger_format = "%color%[%time%] [%level% %origin%] %message%"
|
logger_format = "%color%[%time%] [%level% %origin%] %message%"
|
||||||
logger_newlines_override = true
|
logger_newlines_override = true
|
||||||
logger_newlines_sizelimit = 40
|
logger_newlines_sizelimit = 40
|
||||||
|
|
|
@ -28,7 +28,7 @@ const version_version: int = 1
|
||||||
## The version type. See [enum CoreTypes.VersionType] for more information.
|
## The version type. See [enum CoreTypes.VersionType] for more information.
|
||||||
const version_type: CoreTypes.VersionType = CoreTypes.VersionType.RELEASE
|
const version_type: CoreTypes.VersionType = CoreTypes.VersionType.RELEASE
|
||||||
## The version type number. Resets on every new version and version type.
|
## The version type number. Resets on every new version and version type.
|
||||||
const version_typerelease: int = 0
|
const version_typerelease: int = 1
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
## Used internally for loading, managing and unloading modules.
|
## Used internally for loading, managing and unloading modules.
|
||||||
|
@ -175,6 +175,9 @@ func apply_configuration() -> void:
|
||||||
if config.custom_modules:
|
if config.custom_modules:
|
||||||
for module in custom_modules:
|
for module in custom_modules:
|
||||||
custom_modules[module]._pull_config()
|
custom_modules[module]._pull_config()
|
||||||
|
|
||||||
|
# Workaround
|
||||||
|
logger.verbose_mode = OS.is_stdout_verbose()
|
||||||
|
|
||||||
# +++ custom module support +++
|
# +++ custom module support +++
|
||||||
## Registers a new custom module.
|
## Registers a new custom module.
|
||||||
|
|
|
@ -45,10 +45,6 @@ var config_newlines_override: bool
|
||||||
var config_newlines_sizelimit: int
|
var config_newlines_sizelimit: int
|
||||||
|
|
||||||
# +++ module +++
|
# +++ module +++
|
||||||
func _initialize() -> void:
|
|
||||||
if core.config.logger_detect_verbose_mode and OS.is_stdout_verbose():
|
|
||||||
verbose_mode = true
|
|
||||||
|
|
||||||
func _cleanup() -> void:
|
func _cleanup() -> void:
|
||||||
_schedule()
|
_schedule()
|
||||||
await get_tree().process_frame
|
await get_tree().process_frame
|
||||||
|
|
Loading…
Reference in a new issue