File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,16 @@ public class ExceptionlessAppender : AppenderSkeleton {
10
10
public string ServerUrl { get ; set ; }
11
11
12
12
public override void ActivateOptions ( ) {
13
- if ( ! String . IsNullOrEmpty ( ApiKey ) || ! String . IsNullOrEmpty ( ServerUrl ) )
14
- _client = new ExceptionlessClient ( config => {
15
- if ( ! String . IsNullOrEmpty ( ApiKey ) )
16
- config . ApiKey = ApiKey ;
17
- if ( ! String . IsNullOrEmpty ( ServerUrl ) )
18
- config . ServerUrl = ServerUrl ;
19
- config . UseInMemoryStorage ( ) ;
20
- } ) ;
13
+ if ( String . IsNullOrEmpty ( ApiKey ) && String . IsNullOrEmpty ( ServerUrl ) )
14
+ return ;
15
+
16
+ _client = new ExceptionlessClient ( config => {
17
+ if ( ! String . IsNullOrEmpty ( ApiKey ) )
18
+ config . ApiKey = ApiKey ;
19
+ if ( ! String . IsNullOrEmpty ( ServerUrl ) )
20
+ config . ServerUrl = ServerUrl ;
21
+ config . UseInMemoryStorage ( ) ;
22
+ } ) ;
21
23
}
22
24
23
25
protected override void Append ( LoggingEvent loggingEvent ) {
You can’t perform that action at this time.
0 commit comments