zer0Kerbal / ExceptionDetector

This add-on creates a log file by hooking into the logger callbacks in Unity and is able to extract more value from the available information. Assists in finding issues that you might not even be aware of and might be able to find any pesky add-on(s) that might be causing your issues. For Kerbal Space Program.
https://forum.kerbalspaceprogram.com/index.php?/topic/207511-*/
BSD 2-Clause "Simplified" License
2 stars 4 forks source link

[BUG][FEATURE] if log file missing will throw EXC #46

Open zer0Kerbal opened 1 year ago

zer0Kerbal commented 1 year ago

@lisias, help on this would be greatly appreciated since you know how to stick the logs there.

[LOG 22:36:02.004] [AddonLoader]: Instantiating addon 'ExceptionDetector' from assembly 'ExceptionDetector'
[EXC 22:36:02.011] DirectoryNotFoundException: Could not find a part of the path "X:\KSPDEV\GameData\godarklight\ExceptionDetector\Plugins\Log\ed.log".
    System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <9577ac7a62ef43179789031239ba8798>:0)
    System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) (at <9577ac7a62ef43179789031239ba8798>:0)
    System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) (at <9577ac7a62ef43179789031239ba8798>:0)
    (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
    ExceptionDetector.ExceptionDetector.InitLog () (at <29f588e644614682a2bd5ea2b875251f>:0)
    ExceptionDetector.ExceptionDetector.Awake () (at <29f588e644614682a2bd5ea2b875251f>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    KSPe.Util.Log.UnityLogDecorator:UnityEngine.ILogHandler.LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
zer0Kerbal commented 1 year ago

31 #45 #43 #42 #41 #44