Add Sentry error reporting
This commit is contained in:
@@ -207,6 +207,9 @@ static Task SecretsComeFromConfigurationFile()
|
||||
"connectionString": "Server=db;Database=enova;User ID=user;Password=sql-z-pliku",
|
||||
"commandTimeoutSeconds": 30
|
||||
},
|
||||
"sentry": {
|
||||
"dsn": "https://public@example.com/1"
|
||||
},
|
||||
"diagnostics": {
|
||||
"logDirectory": "C:/logs",
|
||||
"logPrefix": "test"
|
||||
@@ -214,8 +217,10 @@ static Task SecretsComeFromConfigurationFile()
|
||||
}
|
||||
""");
|
||||
|
||||
var runtime = ServiceSettings.Load(path).ResolveRuntimeSettings();
|
||||
var settings = ServiceSettings.Load(path);
|
||||
var runtime = settings.ResolveRuntimeSettings();
|
||||
|
||||
AssertEqual("https://public@example.com/1", settings.Sentry.Dsn, "DSN Sentry");
|
||||
AssertEqual(
|
||||
"haslo-z-pliku",
|
||||
runtime.EnovaConfiguration?.Connection.Password,
|
||||
|
||||
Reference in New Issue
Block a user