Skip to content

Commit 8b3dfae

Browse files
committed
Using the (decent) new thread safe logging from KSPe
1 parent bbedd90 commit 8b3dfae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/ModuleManager/CustomConfigsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ internal void Start()
4646
}
4747
}
4848

49-
private static readonly KSPe.Util.Log.Logger log = KSPe.Util.Log.Logger.CreateForType<CustomConfigsManager>(false, false);
49+
private static readonly KSPe.Util.Log.Logger log = KSPe.Util.Log.Logger.CreateThreadUnsafeForType<CustomConfigsManager>(); // No need to use thread safe logging. Yet.
5050
private static void Log(String s)
5151
{
5252
log.info(s);

Source/ModuleManager/Logging/ModLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace ModuleManager.Logging
77
{
88
public class ModLogger : IBasicLogger
99
{
10-
internal static readonly K.Logger LOG = K.Logger.CreateForType<ModuleManager>(false, false); // No need to use thread safe logging. Yet.
10+
internal static readonly K.Logger LOG = K.Logger.CreateThreadUnsafeForType<ModuleManager>(); // No need to use thread safe logging. Yet.
1111
internal static readonly ModLogger Instance = new ModLogger(); // For legacy code
1212

1313
private delegate void LogMethod(string message, params object[] @parms);

0 commit comments

Comments
 (0)