[BUG][FEATURE] if log file missing will throw EXC
zer0Kerbal opened this issue ยท 1 comments
- rename log file to excd.log (or another .suffix)
- relocate log file to <KSP_ROOT>\Logs\ExceptionDetector\
- if log file not found, create blank one
- if settings file not found, create default
@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)