Skip to content

Commit b72fc57

Browse files
committed
add debug message when successfully registering
1 parent 5f0ea3d commit b72fc57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CSync/Lib/ConfigManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public static void Register<T>(T config) where T : SyncedConfig<T> {
8787
throw new InvalidOperationException($"Attempted to register config instance of type `{typeof(T)}`, but an instance has already been registered.", exc);
8888
}
8989

90+
Plugin.Logger.LogDebug($"Successfully registered config instance {key}.");
91+
9092
SyncedInstance<T>.Instance = config;
9193
SyncedInstance<T>.Default = config;
9294
OnPopulateEntriesRequested += config.PopulateEntryContainer;

0 commit comments

Comments
 (0)