File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Exceptionless/Extensions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -384,15 +384,15 @@ public static void ReadFromAppSettings(this ExceptionlessConfiguration config) {
384
384
/// </summary>
385
385
/// <param name="config">The configuration object you want to apply the attribute settings to.</param>
386
386
public static void ReadFromEnvironmentalVariables ( this ExceptionlessConfiguration config ) {
387
- string apiKey = GetEnvironmentalVariable ( "Exceptionless:ApiKey" ) ;
387
+ string apiKey = GetEnvironmentalVariable ( "Exceptionless:ApiKey" ) ?? GetEnvironmentalVariable ( "Exceptionless__ApiKey" ) ;
388
388
if ( IsValidApiKey ( apiKey ) )
389
389
config . ApiKey = apiKey ;
390
390
391
391
bool enabled ;
392
- if ( Boolean . TryParse ( GetEnvironmentalVariable ( "Exceptionless:Enabled" ) , out enabled ) && ! enabled )
392
+ if ( Boolean . TryParse ( GetEnvironmentalVariable ( "Exceptionless:Enabled" ) ?? GetEnvironmentalVariable ( "Exceptionless__Enabled" ) , out enabled ) && ! enabled )
393
393
config . Enabled = false ;
394
394
395
- string serverUrl = GetEnvironmentalVariable ( "Exceptionless:ServerUrl" ) ;
395
+ string serverUrl = GetEnvironmentalVariable ( "Exceptionless:ServerUrl" ) ?? GetEnvironmentalVariable ( "Exceptionless__ServerUrl" ) ;
396
396
if ( ! String . IsNullOrEmpty ( serverUrl ) )
397
397
config . ServerUrl = serverUrl ;
398
398
}
You can’t perform that action at this time.
0 commit comments