Merge pull request #374 from lukeIam/LoggingImprovments
Don't show log assistant on crash marker in debug mode
This commit is contained in:
1 file changed
+2
@@ -79,11 +79,13 @@ namespace VocaluxeLib.Log
|
|||||||
// Delete the old marker
|
// Delete the old marker
|
||||||
File.Delete(_CrashMarkerFilePath);
|
File.Delete(_CrashMarkerFilePath);
|
||||||
|
|
||||||
|
#if !DEBUG
|
||||||
if (_CurrentVersion == versionTag && File.Exists(mainLogFilePath))
|
if (_CurrentVersion == versionTag && File.Exists(mainLogFilePath))
|
||||||
{
|
{
|
||||||
string logContent = File.ReadAllText(mainLogFilePath, Encoding.UTF8);
|
string logContent = File.ReadAllText(mainLogFilePath, Encoding.UTF8);
|
||||||
_ShowReporterFunc(crash:true, showContinue:true, vocaluxeVersionTag:versionTag, log:logContent, lastError:"Vocaluxe crashed while the last execution.");
|
_ShowReporterFunc(crash:true, showContinue:true, vocaluxeVersionTag:versionTag, log:logContent, lastError:"Vocaluxe crashed while the last execution.");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write new marker
|
// Write new marker
|
||||||
|
|||||||
Reference in new issue
Block a user