fix: Makes logging more consistent (#1246)

This commit is contained in:
Kamron Batman 2022-11-13 00:36:23 -08:00 • committed by GitHub
parent 8e0d01d4be
commit d8cfb6b935
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 90 additions and 69 deletions

View file

@ -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;