diff --git a/src/ServiceControl/Infrastructure/Settings/Settings.cs b/src/ServiceControl/Infrastructure/Settings/Settings.cs index 9918e3b1ac..e962ee3c69 100644 --- a/src/ServiceControl/Infrastructure/Settings/Settings.cs +++ b/src/ServiceControl/Infrastructure/Settings/Settings.cs @@ -216,13 +216,13 @@ public TransportCustomization LoadTransportCustomization() private string GetAuditLogQueue() { - var value = SettingsReader.Read("ServiceBus", "AuditLogQueue", null); - if (AuditQueue == null) { return null; } - + + var value = SettingsReader.Read("ServiceBus", "AuditLogQueue", null); + if (value == null) { logger.Info("No settings found for audit log queue to import, default name will be used"); @@ -275,14 +275,14 @@ private string GetErrorQueue() } private string GetErrorLogQueue() - { - var value = SettingsReader.Read("ServiceBus", "ErrorLogQueue", null); - + { if (ErrorQueue == null) { return null; } + var value = SettingsReader.Read("ServiceBus", "ErrorLogQueue", null); + if (value == null) { logger.Info("No settings found for error log queue to import, default name will be used"); @@ -513,4 +513,4 @@ static string Subscope(string address) const int ExpirationProcessBatchSizeMinimum = 10240; const int MaxBodySizeToStoreDefault = 102400; //100 kb } -} \ No newline at end of file +}