Skip to content

Commit 0253c6d

Browse files
authored
refactor: ♻️ demote log messages (#330)
Demote the log message in `ModLoaderUserProfile` regarding "no `mod_ids` inside `mod_list`" from a warning to an info level. Similarly, demote the log message in `_ModLoaderFile` about "can't open mod folder" from an error to an info level. This adjustment is aimed at preventing confusion after the mod loader is running for the first time without any mods. closes #327
1 parent 8d8cbbb commit 0253c6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addons/mod_loader/api/profile.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static func _create_new_profile(profile_name: String, mod_list: Dictionary) -> M
391391

392392
# If no mods are specified in the mod_list, log a warning and return the new profile
393393
if mod_list.keys().size() == 0:
394-
ModLoaderLog.warning("No mod_ids inside \"mod_list\" for user profile \"%s\" " % profile_name, LOG_NAME)
394+
ModLoaderLog.info("No mod_ids inside \"mod_list\" for user profile \"%s\" " % profile_name, LOG_NAME)
395395
return new_profile
396396

397397
# Set the mod_list

addons/mod_loader/internal/file.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static func load_zips_in_folder(folder_path: String) -> Dictionary:
5151
var mod_dir := Directory.new()
5252
var mod_dir_open_error := mod_dir.open(folder_path)
5353
if not mod_dir_open_error == OK:
54-
ModLoaderLog.error("Can't open mod folder %s (Error: %s)" % [folder_path, mod_dir_open_error], LOG_NAME)
54+
ModLoaderLog.info("Can't open mod folder %s (Error: %s)" % [folder_path, mod_dir_open_error], LOG_NAME)
5555
return {}
5656
var mod_dir_listdir_error := mod_dir.list_dir_begin()
5757
if not mod_dir_listdir_error == OK:

0 commit comments

Comments
 (0)