File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/ServiceControl.Audit/Infrastructure/Settings Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,14 @@ void LoadAuditQueueInformation()
6464 throw new Exception ( "ServiceBus/AuditQueue value is required to start the instance" ) ;
6565 }
6666
67- IngestAuditMessages = SettingsReader . Read ( new SettingsRootNamespace ( "ServiceControl" ) , "IngestAuditMessages" , true ) ;
67+ if ( ! SettingsReader . TryRead ( SettingsRootNamespace , "IngestAuditMessages" , out bool ingestAuditMessages ) )
68+ {
69+ // Backwards compatibility
70+ var serviceControlNamespace = new SettingsRootNamespace ( "ServiceControl" ) ;
71+ ingestAuditMessages = SettingsReader . Read ( serviceControlNamespace , "IngestAuditMessages" , true ) ;
72+ }
73+
74+ IngestAuditMessages = ingestAuditMessages ;
6875
6976 if ( IngestAuditMessages == false )
7077 {
You can’t perform that action at this time.
0 commit comments