修改日志输出等级
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Spine.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0} {1}, {2}", _format, output, ex.Message);
|
_logger.Error("Failed to export {0} {1}, {2}", _format, output, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ namespace Spine.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0} {1}, {2}", _format, output, ex.Message);
|
_logger.Error("Failed to export {0} {1}, {2}", _format, output, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace Spine.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to save frame {0}, {1}", savePath, ex.Message);
|
_logger.Error("Failed to save frame {0}, {1}", savePath, ex.Message);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Spine.Implementations.V21
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace Spine.Implementations.V21
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ namespace Spine.Implementations.V21
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ namespace Spine.Implementations.V21
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Spine.Implementations.V34
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace Spine.Implementations.V34
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ namespace Spine.Implementations.V34
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ namespace Spine.Implementations.V34
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Spine.Implementations.V35
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace Spine.Implementations.V35
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ namespace Spine.Implementations.V35
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ namespace Spine.Implementations.V35
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Spine.Implementations.V36
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace Spine.Implementations.V36
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ namespace Spine.Implementations.V36
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ namespace Spine.Implementations.V36
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Spine.Implementations.V37
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace Spine.Implementations.V37
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ namespace Spine.Implementations.V37
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ namespace Spine.Implementations.V37
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace Spine.Implementations.V38
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ namespace Spine.Implementations.V38
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,7 @@ namespace Spine.Implementations.V38
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,7 @@ namespace Spine.Implementations.V38
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Spine.Implementations.V40
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace Spine.Implementations.V40
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ namespace Spine.Implementations.V40
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ namespace Spine.Implementations.V40
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Spine.Implementations.V41
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace Spine.Implementations.V41
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ namespace Spine.Implementations.V41
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ namespace Spine.Implementations.V41
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace Spine.Implementations.V42
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
throw new InvalidDataException($"Failed to load atlas '{atlasPath}'");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace Spine.Implementations.V42
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ namespace Spine.Implementations.V42
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
_skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ namespace Spine.Implementations.V42
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_atlas.Dispose();
|
_atlas.Dispose();
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
throw new InvalidDataException($"Failed to load skeleton file {skelPath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ namespace Spine
|
|||||||
|
|
||||||
if (hit && LogHitSlots)
|
if (hit && LogHitSlots)
|
||||||
{
|
{
|
||||||
_logger.Debug("Hit ({0}): [{1}]", self.Name, hitSlotName);
|
_logger.Info("Hit ({0}): [{1}]", self.Name, hitSlotName);
|
||||||
}
|
}
|
||||||
return hit;
|
return hit;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ namespace Spine
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Warn("Failed to detect version for skel {0}, try all available versions", skelPath);
|
_logger.Warn("Failed to detect version for skel {0}, try all available versions", skelPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,7 @@ namespace Spine
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
throw new InvalidDataException($"Failed to load spine with version '{version}'");
|
throw new InvalidDataException($"Failed to load spine with version '{version}'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ namespace SpineViewer
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public const string AutoRunFlag = "--autorun";
|
public const string AutoRunFlag = "--autorun";
|
||||||
private const string MutexName = "__SpineViewerInstance__";
|
private const string MutexName = $"__{AppName}_Instance__";
|
||||||
private const string PipeName = "__SpineViewerPipe__";
|
private const string PipeName = $"_{AppName}_Pipe__";
|
||||||
|
|
||||||
public static readonly string ProcessPath = Environment.ProcessPath;
|
public static readonly string ProcessPath = Environment.ProcessPath;
|
||||||
public static readonly string ProcessDirectory = Path.GetDirectoryName(Environment.ProcessPath);
|
public static readonly string ProcessDirectory = Path.GetDirectoryName(Environment.ProcessPath);
|
||||||
@@ -62,7 +62,7 @@ namespace SpineViewer
|
|||||||
};
|
};
|
||||||
TaskScheduler.UnobservedTaskException += (s, e) =>
|
TaskScheduler.UnobservedTaskException += (s, e) =>
|
||||||
{
|
{
|
||||||
_logger.Trace(e.Exception.ToString());
|
_logger.Debug(e.Exception.ToString());
|
||||||
_logger.Error("Unobserved task exception: {0}", e.Exception.Message);
|
_logger.Error("Unobserved task exception: {0}", e.Exception.Message);
|
||||||
e.SetObserved();
|
e.SetObserved();
|
||||||
};
|
};
|
||||||
@@ -130,7 +130,7 @@ namespace SpineViewer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to pass command line args to existed instance, {0}", ex.Message);
|
_logger.Error("Failed to pass command line args to existed instance, {0}", ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -191,7 +191,7 @@ namespace SpineViewer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to process arguments, {0}", ex.Message);
|
_logger.Error("Failed to process arguments, {0}", ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -212,7 +212,7 @@ namespace SpineViewer
|
|||||||
|
|
||||||
private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
|
private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
|
||||||
{
|
{
|
||||||
_logger.Trace(e.Exception.ToString());
|
_logger.Debug(e.Exception.ToString());
|
||||||
_logger.Error("Dispatcher unhandled exception: {0}", e.Exception.Message);
|
_logger.Error("Dispatcher unhandled exception: {0}", e.Exception.Message);
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
@@ -231,7 +231,7 @@ namespace SpineViewer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to query autorun registry key, {0}", ex.Message);
|
_logger.Error("Failed to query autorun registry key, {0}", ex.Message);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -259,7 +259,7 @@ namespace SpineViewer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to set autorun registry key, {0}", ex.Message);
|
_logger.Error("Failed to set autorun registry key, {0}", ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -343,7 +343,7 @@ namespace SpineViewer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to switch language to {0}, {1}", value, ex.Message);
|
_logger.Error("Failed to switch language to {0}, {1}", value, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -367,7 +367,7 @@ namespace SpineViewer
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to switch skin to {0}, {1}", value, ex.Message);
|
_logger.Error("Failed to switch skin to {0}, {1}", value, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ namespace SpineViewer.Utils
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to read json file {0}, {1}", path, ex.Message);
|
_logger.Error("Failed to read json file {0}, {1}", path, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@ namespace SpineViewer.Utils
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to save json file {0}, {1}", path, ex.Message);
|
_logger.Error("Failed to save json file {0}, {1}", path, ex.Message);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -101,7 +101,7 @@ namespace SpineViewer.Utils
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to serialize json object {0}", ex.Message);
|
_logger.Error("Failed to serialize json object {0}", ex.Message);
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
||||||
}
|
}
|
||||||
_vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None;
|
_vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None;
|
||||||
@@ -169,7 +169,7 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
||||||
}
|
}
|
||||||
_vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None;
|
_vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None;
|
||||||
@@ -206,7 +206,7 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -121,7 +121,7 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
||||||
}
|
}
|
||||||
done++;
|
done++;
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
||||||
}
|
}
|
||||||
_vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None;
|
_vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None;
|
||||||
@@ -133,7 +133,7 @@ namespace SpineViewer.ViewModels.Exporters
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
_logger.Error("Failed to export {0}, {1}", output, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to generate preview: {0}, {1}", m.PreviewFilePath, ex.Message);
|
_logger.Error("Failed to generate preview: {0}, {1}", m.PreviewFilePath, ex.Message);
|
||||||
}
|
}
|
||||||
_logger.LogCurrentProcessMemoryUsage();
|
_logger.LogCurrentProcessMemoryUsage();
|
||||||
@@ -221,7 +221,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to generate preview: {0}, {1}", m.PreviewFilePath, ex.Message);
|
_logger.Error("Failed to generate preview: {0}, {1}", m.PreviewFilePath, ex.Message);
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
@@ -261,7 +261,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to delete preview: {0}, {1}", m.PreviewFilePath, ex.Message);
|
_logger.Error("Failed to delete preview: {0}, {1}", m.PreviewFilePath, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -302,7 +302,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to delete preview: {0}, {1}", m.PreviewFilePath, ex.Message);
|
_logger.Error("Failed to delete preview: {0}, {1}", m.PreviewFilePath, ex.Message);
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
@@ -340,7 +340,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to enumerate files in dir: {0}, {1}", _currentDirectory, ex.Message);
|
_logger.Error("Failed to enumerate files in dir: {0}, {1}", _currentDirectory, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -408,7 +408,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Warn("Failed to load preview image for {0}, {1}", FullPath, ex.Message);
|
_logger.Warn("Failed to load preview image for {0}, {1}", FullPath, ex.Message);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to load some prefereneces, {0}", ex.Message);
|
_logger.Error("Failed to load some prefereneces, {0}", ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -573,7 +573,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Fatal("Render task stopped, {0}", ex.Message);
|
_logger.Fatal("Render task stopped, {0}", ex.Message);
|
||||||
MessagePopupService.Error(ex.ToString());
|
MessagePopupService.Error(ex.ToString());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to load: {0}, {1}", skelPath, ex.Message);
|
_logger.Error("Failed to load: {0}, {1}", skelPath, ex.Message);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@@ -340,7 +340,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to reload spine {0}, {1}", sp.SkelPath, ex.Message);
|
_logger.Error("Failed to reload spine {0}, {1}", sp.SkelPath, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -401,7 +401,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
error++;
|
error++;
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to reload spine {0}, {1}", sp.SkelPath, ex.Message);
|
_logger.Error("Failed to reload spine {0}, {1}", sp.SkelPath, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -718,7 +718,7 @@ namespace SpineViewer.ViewModels.MainWindow
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to load: {0}, {1}", cfg.SkelPath, ex.Message);
|
_logger.Error("Failed to load: {0}, {1}", cfg.SkelPath, ex.Message);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace SpineViewer.ViewModels
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Error("Failed to finish work: {0}, {1}", _title, ex.Message);
|
_logger.Error("Failed to finish work: {0}, {1}", _title, ex.Message);
|
||||||
WorkFinished?.Invoke(this, false);
|
WorkFinished?.Invoke(this, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace SpineViewerCLI
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.Trace(ex.ToString());
|
_logger.Debug(ex.ToString());
|
||||||
_logger.Fatal("Failed to execute, {0}", ex.Message);
|
_logger.Fatal("Failed to execute, {0}", ex.Message);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user