This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
UnityExtension/Assets/Editor/GitHub.Unity Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,17 @@ public static NPath LogPath
18
18
}
19
19
}
20
20
21
+ private const string startupLogFile = "github-unity-startup.log" ;
22
+ public static NPath StartupLogPath
23
+ {
24
+ get
25
+ {
26
+ return Environment . GetFolderPath ( Environment . SpecialFolder . LocalApplicationData )
27
+ . ToNPath ( )
28
+ . Combine ( ApplicationInfo . ApplicationName , startupLogFile ) ;
29
+ }
30
+ }
31
+
21
32
public string GetSpecialFolder ( Environment . SpecialFolder folder )
22
33
{
23
34
return Environment . GetFolderPath ( folder ) ;
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ static EntryPoint()
23
23
return ;
24
24
}
25
25
26
- var logPath = DefaultEnvironment . LogPath ;
26
+ var startupLogPath = DefaultEnvironment . StartupLogPath ;
27
27
28
- Logging . LoggerFactory = s => new FileLogAdapter ( logPath . FileNameWithoutExtension + "-startup" + logPath . ExtensionWithDot , s ) ;
28
+ Logging . LoggerFactory = s => new FileLogAdapter ( startupLogPath , s ) ;
29
29
30
30
ServicePointManager . ServerCertificateValidationCallback = ServerCertificateValidationCallback ;
31
31
EditorApplication . update += Initialize ;
You can’t perform that action at this time.
0 commit comments