mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 14:41:21 +08:00
Nit fix in logging (#6708)
This commit is contained in:
parent
94d8b4a122
commit
28cae124d1
@ -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}>");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user