fix: Makes logging more consistent (#1246)
This commit is contained in:
parent
8e0d01d4be
commit
d8cfb6b935
15 changed files with 90 additions and 69 deletions
|
|
@ -51,17 +51,17 @@ namespace Server.Configurations
|
|||
|
||||
if (settings == null)
|
||||
{
|
||||
logger.Error($"Failed reading email configuration from {m_RelPath}");
|
||||
logger.Error("Failed reading email configuration from {Path}", m_RelPath);
|
||||
throw new JsonException($"Failed to deserialize {path}.");
|
||||
}
|
||||
|
||||
logger.Information($"Email configuration read from {m_RelPath}");
|
||||
logger.Information("Email configuration read from {Path}", m_RelPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
settings = new Settings();
|
||||
JsonConfig.Serialize(path, settings);
|
||||
logger.Information($"Email configuration saved to {m_RelPath}.");
|
||||
logger.Information("Email configuration saved to {}.", m_RelPath);
|
||||
}
|
||||
|
||||
EmailEnabled = settings.enabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue