Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f011623

Browse files
committed
consolidating log msgs
1 parent 4fb5946 commit f011623

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/EntryPoint.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ private static void Initialize()
3434

3535
// this will initialize ApplicationManager and Environment if they haven't yet
3636
var logPath = Environment.LogPath;
37+
var logInfo = "";
3738

3839
if (ApplicationCache.Instance.FirstRun)
3940
{
40-
Debug.Log("Initialized GitHub for Unity version " + ApplicationInfo.Version);
41+
logInfo += "Initialized GitHub for Unity version " + ApplicationInfo.Version;
4142

4243
var oldLogPath = logPath.Parent.Combine(logPath.FileNameWithoutExtension + "-old" + logPath.ExtensionWithDot);
4344
try
@@ -53,7 +54,8 @@ private static void Initialize()
5354
Logging.Error(ex, "Error rotating log files");
5455
}
5556

56-
Debug.Log("Initialized GitHub for Unity log file: " + logPath);
57+
logInfo += " and Unity log file: " + logPath;
58+
Debug.Log(logInfo);
5759
}
5860
Logging.LogAdapter = new FileLogAdapter(logPath);
5961
Logging.Info("Initializing GitHub for Unity version " + ApplicationInfo.Version);

0 commit comments

Comments
 (0)