diff --git a/addons/godot-form-validator/validator_functions.gd b/addons/godot-form-validator/validator_functions.gd index 70d31420..2abce6be 100644 --- a/addons/godot-form-validator/validator_functions.gd +++ b/addons/godot-form-validator/validator_functions.gd @@ -5,7 +5,7 @@ class_name ValidatorFunctions static func matches(pattern: String, text: String) -> bool: var regex = RegEx.create_from_string(pattern) if not regex.is_valid(): - Logger.debug("ValidatorFunctions: Invalid RegEx pattern supplied to matches function: %s" % pattern) + Logger.error("ValidatorFunctions: Invalid RegEx pattern supplied to matches function: %s" % pattern) return false var result = regex.search(text) return result != null and result.strings.size() > 0 @@ -14,7 +14,7 @@ static func matches(pattern: String, text: String) -> bool: static func does_not_match(pattern: String, text: String) -> bool: var regex = RegEx.create_from_string(pattern) if not regex.is_valid(): - Logger.debug("ValidatorFunctions: Invalid RegEx pattern supplied to does_not_match function: %s" % pattern) + Logger.error("ValidatorFunctions: Invalid RegEx pattern supplied to does_not_match function: %s" % pattern) return false var result = regex.search(text) return result == null diff --git a/kalulu_localization.es.translation b/kalulu_localization.es.translation index a7ff77be..e297c92c 100644 Binary files a/kalulu_localization.es.translation and b/kalulu_localization.es.translation differ diff --git a/kalulu_localization.fr.translation b/kalulu_localization.fr.translation index d3fc8588..498ae81b 100644 Binary files a/kalulu_localization.fr.translation and b/kalulu_localization.fr.translation differ diff --git a/kalulu_localization.pt_BR.translation b/kalulu_localization.pt_BR.translation index 93d8a0cf..0708c177 100644 Binary files a/kalulu_localization.pt_BR.translation and b/kalulu_localization.pt_BR.translation differ diff --git a/sources/utils/autoloads/logger.gd b/sources/utils/autoloads/logger.gd index 9d3ba328..63dbf157 100644 --- a/sources/utils/autoloads/logger.gd +++ b/sources/utils/autoloads/logger.gd @@ -31,9 +31,9 @@ func _ready() -> void: func delete_old_logs(days_threshold: float = 10) -> void: var dir: DirAccess = DirAccess.open(LOG_PATH) - var error: Error = DirAccess.get_open_error() - if error != OK: - push_error("Logger: Could not open Logs directory for cleanup. Error: %s" % error_string(error)) + var err: Error = DirAccess.get_open_error() + if err != OK: + push_error("Logger: Could not open Logs directory for cleanup. Error: %s" % error_string(err)) return if not dir: push_warning("Logger: Could not open Logs directory for cleanup.") @@ -58,7 +58,7 @@ func delete_old_logs(days_threshold: float = 10) -> void: var age_days: float = float(now - file_time) / (60.0 * 60.0 * 24.0) if age_days > days_threshold: var full_path: String = LOG_PATH + file_name - var err: Error = dir.remove(full_path) + err = dir.remove(full_path) if err != OK: push_warning("Logger: Failed to delete old log: " + full_path) else: @@ -80,9 +80,9 @@ func _init_log_file() -> void: log_file_path = LOG_PATH + filename log_file = FileAccess.open(log_file_path, FileAccess.WRITE) - var error: Error = FileAccess.get_open_error() - if error != OK: - push_error("Logger: Load external sound: Cannot open file %s. Error: %s" % [log_file_path, error_string(error)]) + var err: Error = FileAccess.get_open_error() + if err != OK: + push_error("Logger: Load external sound: Cannot open file %s. Error: %s" % [log_file_path, error_string(err)]) return if log_file == null: push_error("Logger: Could not open log file at " + log_file_path) diff --git a/sources/utils/autoloads/user_data_manager.gd b/sources/utils/autoloads/user_data_manager.gd index 086ad19b..49223612 100644 --- a/sources/utils/autoloads/user_data_manager.gd +++ b/sources/utils/autoloads/user_data_manager.gd @@ -169,7 +169,7 @@ func safe_load_and_fix_resource(path: String, old_texts: Array[String], new_text for index: int in range(old_texts.size()): if content.find(old_texts[index]) != -1: - Logger.info("UserDataManager: Fix resource:" + path) + Logger.trace("UserDataManager: Fix resource:" + path) content = content.replace(old_texts[index], new_texts[index]) var file: FileAccess = FileAccess.open(path, FileAccess.WRITE) var error: Error = FileAccess.get_open_error()