Nit fix in logging (#6708)

This commit is contained in:
Divyansh Srivastava
2020-09-18 13:32:28 -07:00
committed by GitHub
parent 94d8b4a122
commit 28cae124d1
2 changed files with 5 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ namespace Wox.Infrastructure.Storage
if (File.Exists(FilePath)) if (File.Exists(FilePath))
{ {
File.Delete(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(); _storageHelper.Close();
Log.Info($"|BinaryStorage.Save|Saving cached data| <{FilePath}>"); Log.Info($"|BinaryStorage.Save|Saving cached data at <{FilePath}>");
} }
} }
} }

View File

@@ -51,7 +51,7 @@ namespace Wox.Infrastructure.Storage
if (File.Exists(FilePath)) if (File.Exists(FilePath))
{ {
File.Delete(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); string serialized = JsonConvert.SerializeObject(_data, Formatting.Indented);
File.WriteAllText(FilePath, serialized); File.WriteAllText(FilePath, serialized);
_storageHelper.Close(); _storageHelper.Close();
Log.Info($"|JsonStorage.Save|Saving cached data| <{FilePath}>"); Log.Info($"|JsonStorage.Save|Saving cached data at <{FilePath}>");
} }
catch (IOException e) 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);
} }
} }
} }