Skip to content

Commit

Permalink
~ Fixing the logger path if it does not contain the trailing slash, t…
Browse files Browse the repository at this point in the history
…hen it is added to the folder path.
  • Loading branch information
gindemit committed Nov 26, 2023
1 parent ad1d8c9 commit 59f4b20
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using LottiePlugin.Utility;
using System;
using System.IO;
using System.Runtime.InteropServices;
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
Expand Down Expand Up @@ -165,6 +166,10 @@ public static void InitializeLogger(string logDirectoryPath, string logFileName,
{
return;
}
if (!logDirectoryPath.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal))
{
logDirectoryPath += Path.DirectorySeparatorChar;
}
NativeBridge.InitializeLogger(logDirectoryPath, logFileName, logFileRollSizeMB);
sLoggerInitialized = true;
}
Expand Down

0 comments on commit 59f4b20

Please sign in to comment.