diff --git a/Spine/Exporters/CustomFFmpegExporter.cs b/Spine/Exporters/CustomFFmpegExporter.cs index 7f420c6..016ae49 100644 --- a/Spine/Exporters/CustomFFmpegExporter.cs +++ b/Spine/Exporters/CustomFFmpegExporter.cs @@ -92,7 +92,7 @@ namespace Spine.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0} {1}, {2}", _format, output, ex.Message); } } diff --git a/Spine/Exporters/FFmpegVideoExporter.cs b/Spine/Exporters/FFmpegVideoExporter.cs index b52d0ab..860e397 100644 --- a/Spine/Exporters/FFmpegVideoExporter.cs +++ b/Spine/Exporters/FFmpegVideoExporter.cs @@ -144,7 +144,7 @@ namespace Spine.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0} {1}, {2}", _format, output, ex.Message); } } diff --git a/Spine/Exporters/FrameSequenceExporter.cs b/Spine/Exporters/FrameSequenceExporter.cs index 9fd035a..f512bc6 100644 --- a/Spine/Exporters/FrameSequenceExporter.cs +++ b/Spine/Exporters/FrameSequenceExporter.cs @@ -47,7 +47,7 @@ namespace Spine.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to save frame {0}, {1}", savePath, ex.Message); } finally diff --git a/Spine/Implementations/V21/SpineObjectData21.cs b/Spine/Implementations/V21/SpineObjectData21.cs index d4a39c4..ad009f2 100644 --- a/Spine/Implementations/V21/SpineObjectData21.cs +++ b/Spine/Implementations/V21/SpineObjectData21.cs @@ -36,7 +36,7 @@ namespace Spine.Implementations.V21 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -50,7 +50,7 @@ namespace Spine.Implementations.V21 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -62,7 +62,7 @@ namespace Spine.Implementations.V21 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -70,7 +70,7 @@ namespace Spine.Implementations.V21 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/Implementations/V34/SpineObjectData34.cs b/Spine/Implementations/V34/SpineObjectData34.cs index ae31a3a..174040f 100644 --- a/Spine/Implementations/V34/SpineObjectData34.cs +++ b/Spine/Implementations/V34/SpineObjectData34.cs @@ -36,7 +36,7 @@ namespace Spine.Implementations.V34 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -50,7 +50,7 @@ namespace Spine.Implementations.V34 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -62,7 +62,7 @@ namespace Spine.Implementations.V34 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -70,7 +70,7 @@ namespace Spine.Implementations.V34 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/Implementations/V35/SpineObjectData35.cs b/Spine/Implementations/V35/SpineObjectData35.cs index 4b29545..23a9a7e 100644 --- a/Spine/Implementations/V35/SpineObjectData35.cs +++ b/Spine/Implementations/V35/SpineObjectData35.cs @@ -36,7 +36,7 @@ namespace Spine.Implementations.V35 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -50,7 +50,7 @@ namespace Spine.Implementations.V35 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -62,7 +62,7 @@ namespace Spine.Implementations.V35 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -70,7 +70,7 @@ namespace Spine.Implementations.V35 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/Implementations/V36/SpineObjectData36.cs b/Spine/Implementations/V36/SpineObjectData36.cs index e7846f7..96cbdef 100644 --- a/Spine/Implementations/V36/SpineObjectData36.cs +++ b/Spine/Implementations/V36/SpineObjectData36.cs @@ -36,7 +36,7 @@ namespace Spine.Implementations.V36 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -50,7 +50,7 @@ namespace Spine.Implementations.V36 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -62,7 +62,7 @@ namespace Spine.Implementations.V36 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -70,7 +70,7 @@ namespace Spine.Implementations.V36 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/Implementations/V37/SpineObjectData37.cs b/Spine/Implementations/V37/SpineObjectData37.cs index b8674b2..db5ce65 100644 --- a/Spine/Implementations/V37/SpineObjectData37.cs +++ b/Spine/Implementations/V37/SpineObjectData37.cs @@ -36,7 +36,7 @@ namespace Spine.Implementations.V37 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -50,7 +50,7 @@ namespace Spine.Implementations.V37 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -62,7 +62,7 @@ namespace Spine.Implementations.V37 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -70,7 +70,7 @@ namespace Spine.Implementations.V37 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/Implementations/V38/SpineObjectData38.cs b/Spine/Implementations/V38/SpineObjectData38.cs index 680d43c..e1069de 100644 --- a/Spine/Implementations/V38/SpineObjectData38.cs +++ b/Spine/Implementations/V38/SpineObjectData38.cs @@ -37,7 +37,7 @@ namespace Spine.Implementations.V38 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -51,7 +51,7 @@ namespace Spine.Implementations.V38 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -63,7 +63,7 @@ namespace Spine.Implementations.V38 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -71,7 +71,7 @@ namespace Spine.Implementations.V38 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/Implementations/V40/SpineObjectData40.cs b/Spine/Implementations/V40/SpineObjectData40.cs index b02a489..7df752e 100644 --- a/Spine/Implementations/V40/SpineObjectData40.cs +++ b/Spine/Implementations/V40/SpineObjectData40.cs @@ -36,7 +36,7 @@ namespace Spine.Implementations.V40 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -50,7 +50,7 @@ namespace Spine.Implementations.V40 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -62,7 +62,7 @@ namespace Spine.Implementations.V40 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -70,7 +70,7 @@ namespace Spine.Implementations.V40 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/Implementations/V41/SpineObjectData41.cs b/Spine/Implementations/V41/SpineObjectData41.cs index 25ede0d..b1ec552 100644 --- a/Spine/Implementations/V41/SpineObjectData41.cs +++ b/Spine/Implementations/V41/SpineObjectData41.cs @@ -36,7 +36,7 @@ namespace Spine.Implementations.V41 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -50,7 +50,7 @@ namespace Spine.Implementations.V41 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -62,7 +62,7 @@ namespace Spine.Implementations.V41 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -70,7 +70,7 @@ namespace Spine.Implementations.V41 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/Implementations/V42/SpineObjectData42.cs b/Spine/Implementations/V42/SpineObjectData42.cs index 95afa35..5a07967 100644 --- a/Spine/Implementations/V42/SpineObjectData42.cs +++ b/Spine/Implementations/V42/SpineObjectData42.cs @@ -36,7 +36,7 @@ namespace Spine.Implementations.V42 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load atlas '{atlasPath}'"); } @@ -50,7 +50,7 @@ namespace Spine.Implementations.V42 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonBinary(_atlas).ReadSkeletonData(skelPath); } } @@ -62,7 +62,7 @@ namespace Spine.Implementations.V42 } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _skeletonData = new SkeletonJson(_atlas).ReadSkeletonData(skelPath); } } @@ -70,7 +70,7 @@ namespace Spine.Implementations.V42 catch (Exception ex) { _atlas.Dispose(); - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load skeleton file {skelPath}"); } diff --git a/Spine/SpineExtension.cs b/Spine/SpineExtension.cs index 9d04db8..c8bc5a6 100644 --- a/Spine/SpineExtension.cs +++ b/Spine/SpineExtension.cs @@ -269,7 +269,7 @@ namespace Spine if (hit && LogHitSlots) { - _logger.Debug("Hit ({0}): [{1}]", self.Name, hitSlotName); + _logger.Info("Hit ({0}): [{1}]", self.Name, hitSlotName); } return hit; } diff --git a/Spine/SpineObject.cs b/Spine/SpineObject.cs index c911521..f1aef2d 100644 --- a/Spine/SpineObject.cs +++ b/Spine/SpineObject.cs @@ -82,7 +82,7 @@ namespace Spine } 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); } } @@ -118,7 +118,7 @@ namespace Spine } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); throw new InvalidDataException($"Failed to load spine with version '{version}'"); } } diff --git a/SpineViewer/App.xaml.cs b/SpineViewer/App.xaml.cs index 9baa531..f8d57b0 100644 --- a/SpineViewer/App.xaml.cs +++ b/SpineViewer/App.xaml.cs @@ -33,8 +33,8 @@ namespace SpineViewer #endif public const string AutoRunFlag = "--autorun"; - private const string MutexName = "__SpineViewerInstance__"; - private const string PipeName = "__SpineViewerPipe__"; + private const string MutexName = $"__{AppName}_Instance__"; + private const string PipeName = $"_{AppName}_Pipe__"; public static readonly string ProcessPath = Environment.ProcessPath; public static readonly string ProcessDirectory = Path.GetDirectoryName(Environment.ProcessPath); @@ -62,7 +62,7 @@ namespace SpineViewer }; TaskScheduler.UnobservedTaskException += (s, e) => { - _logger.Trace(e.Exception.ToString()); + _logger.Debug(e.Exception.ToString()); _logger.Error("Unobserved task exception: {0}", e.Exception.Message); e.SetObserved(); }; @@ -130,7 +130,7 @@ namespace SpineViewer } 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); } } @@ -191,7 +191,7 @@ namespace SpineViewer } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _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) { - _logger.Trace(e.Exception.ToString()); + _logger.Debug(e.Exception.ToString()); _logger.Error("Dispatcher unhandled exception: {0}", e.Exception.Message); e.Handled = true; } @@ -231,7 +231,7 @@ namespace SpineViewer } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to query autorun registry key, {0}", ex.Message); return false; } @@ -259,7 +259,7 @@ namespace SpineViewer } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to set autorun registry key, {0}", ex.Message); } } @@ -343,7 +343,7 @@ namespace SpineViewer } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to switch language to {0}, {1}", value, ex.Message); } } @@ -367,7 +367,7 @@ namespace SpineViewer } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to switch skin to {0}, {1}", value, ex.Message); } } diff --git a/SpineViewer/Utils/JsonHelper.cs b/SpineViewer/Utils/JsonHelper.cs index f37c220..93788b2 100644 --- a/SpineViewer/Utils/JsonHelper.cs +++ b/SpineViewer/Utils/JsonHelper.cs @@ -65,7 +65,7 @@ namespace SpineViewer.Utils } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to read json file {0}, {1}", path, ex.Message); } } @@ -86,7 +86,7 @@ namespace SpineViewer.Utils } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to save json file {0}, {1}", path, ex.Message); return false; } @@ -101,7 +101,7 @@ namespace SpineViewer.Utils } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to serialize json object {0}", ex.Message); return string.Empty; } diff --git a/SpineViewer/ViewModels/Exporters/CustomFFmpegExporterViewModel.cs b/SpineViewer/ViewModels/Exporters/CustomFFmpegExporterViewModel.cs index f1afde6..6ad0c87 100644 --- a/SpineViewer/ViewModels/Exporters/CustomFFmpegExporterViewModel.cs +++ b/SpineViewer/ViewModels/Exporters/CustomFFmpegExporterViewModel.cs @@ -112,7 +112,7 @@ namespace SpineViewer.ViewModels.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0}, {1}", output, ex.Message); } _vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None; @@ -169,7 +169,7 @@ namespace SpineViewer.ViewModels.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0}, {1}", output, ex.Message); } } diff --git a/SpineViewer/ViewModels/Exporters/FFmpegVideoExporterViewModel.cs b/SpineViewer/ViewModels/Exporters/FFmpegVideoExporterViewModel.cs index 446639e..f41b325 100644 --- a/SpineViewer/ViewModels/Exporters/FFmpegVideoExporterViewModel.cs +++ b/SpineViewer/ViewModels/Exporters/FFmpegVideoExporterViewModel.cs @@ -149,7 +149,7 @@ namespace SpineViewer.ViewModels.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0}, {1}", output, ex.Message); } _vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None; @@ -206,7 +206,7 @@ namespace SpineViewer.ViewModels.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0}, {1}", output, ex.Message); } } diff --git a/SpineViewer/ViewModels/Exporters/FrameExporterViewModel.cs b/SpineViewer/ViewModels/Exporters/FrameExporterViewModel.cs index 839805c..70196e7 100644 --- a/SpineViewer/ViewModels/Exporters/FrameExporterViewModel.cs +++ b/SpineViewer/ViewModels/Exporters/FrameExporterViewModel.cs @@ -85,7 +85,7 @@ namespace SpineViewer.ViewModels.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0}, {1}", output, ex.Message); } } @@ -121,7 +121,7 @@ namespace SpineViewer.ViewModels.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0}, {1}", output, ex.Message); } done++; diff --git a/SpineViewer/ViewModels/Exporters/FrameSequenceExporterViewModel.cs b/SpineViewer/ViewModels/Exporters/FrameSequenceExporterViewModel.cs index cb547d5..0ef7507 100644 --- a/SpineViewer/ViewModels/Exporters/FrameSequenceExporterViewModel.cs +++ b/SpineViewer/ViewModels/Exporters/FrameSequenceExporterViewModel.cs @@ -76,7 +76,7 @@ namespace SpineViewer.ViewModels.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0}, {1}", output, ex.Message); } _vmMain.ProgressState = System.Windows.Shell.TaskbarItemProgressState.None; @@ -133,7 +133,7 @@ namespace SpineViewer.ViewModels.Exporters } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to export {0}, {1}", output, ex.Message); } } diff --git a/SpineViewer/ViewModels/MainWindow/ExplorerListViewModel.cs b/SpineViewer/ViewModels/MainWindow/ExplorerListViewModel.cs index 3a56496..bcb6813 100644 --- a/SpineViewer/ViewModels/MainWindow/ExplorerListViewModel.cs +++ b/SpineViewer/ViewModels/MainWindow/ExplorerListViewModel.cs @@ -169,7 +169,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to generate preview: {0}, {1}", m.PreviewFilePath, ex.Message); } _logger.LogCurrentProcessMemoryUsage(); @@ -221,7 +221,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to generate preview: {0}, {1}", m.PreviewFilePath, ex.Message); error++; } @@ -261,7 +261,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to delete preview: {0}, {1}", m.PreviewFilePath, ex.Message); } } @@ -302,7 +302,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to delete preview: {0}, {1}", m.PreviewFilePath, ex.Message); error++; } @@ -340,7 +340,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to enumerate files in dir: {0}, {1}", _currentDirectory, ex.Message); } } @@ -408,7 +408,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Warn("Failed to load preview image for {0}, {1}", FullPath, ex.Message); return null; } diff --git a/SpineViewer/ViewModels/MainWindow/PreferenceViewModel.cs b/SpineViewer/ViewModels/MainWindow/PreferenceViewModel.cs index 5b07df6..9f2a823 100644 --- a/SpineViewer/ViewModels/MainWindow/PreferenceViewModel.cs +++ b/SpineViewer/ViewModels/MainWindow/PreferenceViewModel.cs @@ -76,7 +76,7 @@ namespace SpineViewer.ViewModels.MainWindow catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to load some prefereneces, {0}", ex.Message); } } diff --git a/SpineViewer/ViewModels/MainWindow/SFMLRendererViewModel.cs b/SpineViewer/ViewModels/MainWindow/SFMLRendererViewModel.cs index e70f138..829df00 100644 --- a/SpineViewer/ViewModels/MainWindow/SFMLRendererViewModel.cs +++ b/SpineViewer/ViewModels/MainWindow/SFMLRendererViewModel.cs @@ -573,7 +573,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Fatal("Render task stopped, {0}", ex.Message); MessagePopupService.Error(ex.ToString()); } diff --git a/SpineViewer/ViewModels/MainWindow/SpineObjectListViewModel.cs b/SpineViewer/ViewModels/MainWindow/SpineObjectListViewModel.cs index a6cda79..eb325f1 100644 --- a/SpineViewer/ViewModels/MainWindow/SpineObjectListViewModel.cs +++ b/SpineViewer/ViewModels/MainWindow/SpineObjectListViewModel.cs @@ -213,7 +213,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to load: {0}, {1}", skelPath, ex.Message); } return false; @@ -340,7 +340,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to reload spine {0}, {1}", sp.SkelPath, ex.Message); } } @@ -401,7 +401,7 @@ namespace SpineViewer.ViewModels.MainWindow catch (Exception ex) { error++; - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to reload spine {0}, {1}", sp.SkelPath, ex.Message); } } @@ -718,7 +718,7 @@ namespace SpineViewer.ViewModels.MainWindow } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to load: {0}, {1}", cfg.SkelPath, ex.Message); } return false; diff --git a/SpineViewer/ViewModels/ProgressDialogViewModel.cs b/SpineViewer/ViewModels/ProgressDialogViewModel.cs index 7bc3f9f..6c2a9cc 100644 --- a/SpineViewer/ViewModels/ProgressDialogViewModel.cs +++ b/SpineViewer/ViewModels/ProgressDialogViewModel.cs @@ -35,7 +35,7 @@ namespace SpineViewer.ViewModels } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Error("Failed to finish work: {0}, {1}", _title, ex.Message); WorkFinished?.Invoke(this, false); } diff --git a/SpineViewerCLI/SpineViewerCLI.cs b/SpineViewerCLI/SpineViewerCLI.cs index 9bcbea3..36c2110 100644 --- a/SpineViewerCLI/SpineViewerCLI.cs +++ b/SpineViewerCLI/SpineViewerCLI.cs @@ -42,7 +42,7 @@ namespace SpineViewerCLI } catch (Exception ex) { - _logger.Trace(ex.ToString()); + _logger.Debug(ex.ToString()); _logger.Fatal("Failed to execute, {0}", ex.Message); return -1; }