Error message is now displayed if CreamAPI cannot be downloaded.
Fixed incorrect logging syntax.
This commit is contained in:
parent
178b7427b8
commit
8ade832b42
7 changed files with 59 additions and 43 deletions
|
@ -65,7 +65,7 @@ namespace auto_creamapi.Services
|
|||
_configFilePath = configFilePath;
|
||||
if (File.Exists(configFilePath))
|
||||
{
|
||||
MyLogger.Log.Information($"Config file found @ {configFilePath}, parsing...");
|
||||
MyLogger.Log.Information("Config file found @ {ConfigFilePath}, parsing...", configFilePath);
|
||||
var parser = new FileIniDataParser();
|
||||
var data = parser.ReadFile(_configFilePath, Encoding.UTF8);
|
||||
|
||||
|
@ -83,7 +83,7 @@ namespace auto_creamapi.Services
|
|||
}
|
||||
else
|
||||
{
|
||||
MyLogger.Log.Information($"Config file does not exist @ {configFilePath}, skipping...");
|
||||
MyLogger.Log.Information("Config file does not exist @ {ConfigFilePath}, skipping...", configFilePath);
|
||||
ResetConfigData();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue