Skip to content

Commit 54018b2

Browse files
fix: 🐛 Fix ModLoaderUtils log deprecation using ModLoader.* (#300)
ModLoaderUtils log deprecation messages all use `ModLoader.*`, instead of `ModLoaderUtils.*`.
1 parent 3228cb2 commit 54018b2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

addons/mod_loader/internal/mod_loader_utils.gd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,47 +126,47 @@ static func get_string_in_between(string: String, initial: String, ending: Strin
126126
# Stops the execution in editor
127127
# Always logged
128128
static func log_fatal(message: String, mod_name: String) -> void:
129-
ModLoaderDeprecated.deprecated_changed("ModLoader.log_fatal", "ModLoaderLog.fatal", "6.0.0")
129+
ModLoaderDeprecated.deprecated_changed("ModLoaderUtils.log_fatal", "ModLoaderLog.fatal", "6.0.0")
130130
ModLoaderLog.fatal(message, mod_name)
131131

132132

133133
# Logs the message and pushed an error. Prefixed ERROR
134134
# Always logged
135135
static func log_error(message: String, mod_name: String) -> void:
136-
ModLoaderDeprecated.deprecated_changed("ModLoader.log_error", "ModLoaderLog.error", "6.0.0")
136+
ModLoaderDeprecated.deprecated_changed("ModLoaderUtils.log_error", "ModLoaderLog.error", "6.0.0")
137137
ModLoaderLog.error(message, mod_name)
138138

139139

140140
# Logs the message and pushes a warning. Prefixed WARNING
141141
# Logged with verbosity level at or above warning (-v)
142142
static func log_warning(message: String, mod_name: String) -> void:
143-
ModLoaderDeprecated.deprecated_changed("ModLoader.log_warning", "ModLoaderLog.warning", "6.0.0")
143+
ModLoaderDeprecated.deprecated_changed("ModLoaderUtils.log_warning", "ModLoaderLog.warning", "6.0.0")
144144
ModLoaderLog.warning(message, mod_name)
145145

146146

147147
# Logs the message. Prefixed INFO
148148
# Logged with verbosity level at or above info (-vv)
149149
static func log_info(message: String, mod_name: String) -> void:
150-
ModLoaderDeprecated.deprecated_changed("ModLoader.log_info", "ModLoaderLog.info", "6.0.0")
150+
ModLoaderDeprecated.deprecated_changed("ModLoaderUtils.log_info", "ModLoaderLog.info", "6.0.0")
151151
ModLoaderLog.info(message, mod_name)
152152

153153

154154
# Logs the message. Prefixed SUCCESS
155155
# Logged with verbosity level at or above info (-vv)
156156
static func log_success(message: String, mod_name: String) -> void:
157-
ModLoaderDeprecated.deprecated_changed("ModLoader.log_success", "ModLoaderLog.success", "6.0.0")
157+
ModLoaderDeprecated.deprecated_changed("ModLoaderUtils.log_success", "ModLoaderLog.success", "6.0.0")
158158
ModLoaderLog.success(message, mod_name)
159159

160160

161161
# Logs the message. Prefixed DEBUG
162162
# Logged with verbosity level at or above debug (-vvv)
163163
static func log_debug(message: String, mod_name: String) -> void:
164-
ModLoaderDeprecated.deprecated_changed("ModLoader.log_debug", "ModLoaderLog.debug", "6.0.0")
164+
ModLoaderDeprecated.deprecated_changed("ModLoaderUtils.log_debug", "ModLoaderLog.debug", "6.0.0")
165165
ModLoaderLog.debug(message, mod_name)
166166

167167

168168
# Logs the message formatted with [method JSON.print]. Prefixed DEBUG
169169
# Logged with verbosity level at or above debug (-vvv)
170170
static func log_debug_json_print(message: String, json_printable, mod_name: String) -> void:
171-
ModLoaderDeprecated.deprecated_changed("ModLoader.log_debug_json_print", "ModLoaderLog.debug_json_print", "6.0.0")
171+
ModLoaderDeprecated.deprecated_changed("ModLoaderUtils.log_debug_json_print", "ModLoaderLog.debug_json_print", "6.0.0")
172172
ModLoaderLog.debug_json_print(message, json_printable, mod_name)

0 commit comments

Comments
 (0)