Refactor logging
This commit is contained in:
1 parent
b930588556
commit
c907ec0f44
67 files changed
+2039
-627
No files matched your search
@@ -18,6 +18,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using VocaluxeLib.Log;
|
||||
|
||||
namespace VocaluxeLib.Songs
|
||||
{
|
||||
@@ -207,12 +208,12 @@ namespace VocaluxeLib.Songs
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
CBase.Log.LogError("Cannot write " + filePath + ". Directory might be readonly or requires admin rights.");
|
||||
CLog.Error("Cannot write " + filePath + ". Directory might be readonly or requires admin rights.");
|
||||
return false;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
CBase.Log.LogError("Unhandled exception while writing " + filePath + ": " + e);
|
||||
CLog.Error("Unhandled exception while writing " + filePath + ": " + e);
|
||||
return false;
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in new issue
Block a user