diff --git a/src/NadekoBot/Services/Impl/BotCredentials.cs b/src/NadekoBot/Services/Impl/BotCredentials.cs index 6f0463b5..d1d0d1d4 100644 --- a/src/NadekoBot/Services/Impl/BotCredentials.cs +++ b/src/NadekoBot/Services/Impl/BotCredentials.cs @@ -44,7 +44,7 @@ namespace NadekoBot.Services.Impl try { var configBuilder = new ConfigurationBuilder(); - configBuilder.AddJsonFile(credsFileName) + configBuilder.AddJsonFile(credsFileName, true) .AddEnvironmentVariables("NadekoBot_"); var data = configBuilder.Build(); @@ -78,7 +78,8 @@ namespace NadekoBot.Services.Impl } catch (Exception ex) { - _log.Warn(ex); + _log.Fatal(ex.Message); + _log.Fatal(ex); throw; }