From 28cae124d175b40487a3e2e224c73bd990db209c Mon Sep 17 00:00:00 2001 From: Divyansh Srivastava Date: Fri, 18 Sep 2020 13:32:28 -0700 Subject: [PATCH] Nit fix in logging (#6708) --- .../launcher/Wox.Infrastructure/Storage/BinaryStorage`1.cs | 4 ++-- .../launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/launcher/Wox.Infrastructure/Storage/BinaryStorage`1.cs b/src/modules/launcher/Wox.Infrastructure/Storage/BinaryStorage`1.cs index 9f1ef73df7..c79dabcbf2 100644 --- a/src/modules/launcher/Wox.Infrastructure/Storage/BinaryStorage`1.cs +++ b/src/modules/launcher/Wox.Infrastructure/Storage/BinaryStorage`1.cs @@ -44,7 +44,7 @@ namespace Wox.Infrastructure.Storage if (File.Exists(FilePath)) { File.Delete(FilePath); - Log.Info($"|BinaryStorage.TryLoad|Deleting cached data| <{FilePath}>"); + Log.Info($"|BinaryStorage.TryLoad|Deleting cached data at <{FilePath}>"); } } @@ -133,7 +133,7 @@ namespace Wox.Infrastructure.Storage } _storageHelper.Close(); - Log.Info($"|BinaryStorage.Save|Saving cached data| <{FilePath}>"); + Log.Info($"|BinaryStorage.Save|Saving cached data at <{FilePath}>"); } } } diff --git a/src/modules/launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs b/src/modules/launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs index 0b120de9a2..2b22029dec 100644 --- a/src/modules/launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs +++ b/src/modules/launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs @@ -51,7 +51,7 @@ namespace Wox.Infrastructure.Storage if (File.Exists(FilePath)) { File.Delete(FilePath); - Log.Info($"|JsonStorage.TryLoad|Deleting cached data|<{FilePath}>"); + Log.Info($"|JsonStorage.TryLoad|Deleting cached data at <{FilePath}>"); } } @@ -123,11 +123,11 @@ namespace Wox.Infrastructure.Storage string serialized = JsonConvert.SerializeObject(_data, Formatting.Indented); File.WriteAllText(FilePath, serialized); _storageHelper.Close(); - Log.Info($"|JsonStorage.Save|Saving cached data| <{FilePath}>"); + Log.Info($"|JsonStorage.Save|Saving cached data at <{FilePath}>"); } catch (IOException e) { - Log.Error($"|JsonStorage.Save|Error in saving data| <{FilePath}>", e.Message); + Log.Error($"|JsonStorage.Save|Error in saving data at <{FilePath}>", e.Message); } } }