3838@ ConfigurationProperties (prefix = "bfd" )
3939public class Configuration implements Serializable {
4040 // Unfortunately, constructor injection doesn't work with @ConfigurationProperties
41+ private static final String LOCAL_ENV = "local" ;
4142
4243 /** Identifies which Spring profiles indicate that the server is being run on a local machine. */
43- private static final List <String > ALLOWED_LOCAL_PROFILES = List .of ("local" , "sqlprofile" );
44+ private static final List <String > ALLOWED_LOCAL_PROFILES =
45+ List .of (LOCAL_ENV , "sql-profile" , "structured-log" );
4446
4547 // Getters should only be generated for configuration properties, not dependencies
4648 @ Getter (value = AccessLevel .NONE )
@@ -57,12 +59,11 @@ public class Configuration implements Serializable {
5759 @ Autowired (required = false )
5860 private JdbcConnectionDetails jdbcConnectionDetails ;
5961
60- private static final String BFD_ENV_LOCAL = "local" ;
6162 private String dynamoLocalUrl = "http://localhost:8000" ;
6263
6364 // Default to local configuration, this should be overridden on deployment with the correct
6465 // environment.
65- private String env = BFD_ENV_LOCAL ;
66+ private String env = LOCAL_ENV ;
6667 private String dbIdentifier = "" ;
6768 private Local local = new Local ();
6869 private Sensitive sensitive = new Sensitive ();
@@ -129,7 +130,7 @@ public AuditLogger getAuditLogger(ObjectMapper objectMapper) {
129130 }
130131
131132 boolean isLocal () {
132- return env .equalsIgnoreCase (BFD_ENV_LOCAL );
133+ return env .equalsIgnoreCase (LOCAL_ENV );
133134 }
134135
135136 /** Represents possible types of audit logging. */
0 commit comments