File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ export class ExceptionlessClient {
32
32
await SettingsManager . applySavedServerSettings ( this . config ) ;
33
33
}
34
34
35
+ if ( ! this . config . isValid ) {
36
+ this . config . services . log . warn ( "Exceptionless is not configured and will not process events." ) ;
37
+ return ;
38
+ }
39
+
35
40
this . updateSettingsTimer ( ! ! configurationOrApiKey ) ;
36
41
await EventPluginManager . startup ( new PluginContext ( this ) ) ;
37
42
@@ -63,19 +68,21 @@ export class ExceptionlessClient {
63
68
await this . config . services . queue . process ( ) ;
64
69
}
65
70
66
- private updateSettingsTimer ( startingUp = false ) {
71
+ private updateSettingsTimer ( startingUp : boolean = false ) {
67
72
this . suspendSettingsTimer ( ) ;
68
73
74
+ if ( ! this . config . isValid ) {
75
+ return ;
76
+ }
77
+
69
78
const interval = this . config . updateSettingsWhenIdleInterval ;
70
79
if ( interval > 0 ) {
71
80
let initialDelay : number = interval ;
72
81
if ( startingUp ) {
73
82
initialDelay = this . config . settingsVersion > 0 ? 15000 : 5000 ;
74
83
}
75
84
76
- this . config . services . log . info (
77
- `Update settings every ${ interval } ms (${ initialDelay || 0 } ms delay)` ,
78
- ) ;
85
+ this . config . services . log . info ( `Update settings every ${ interval } ms (${ initialDelay || 0 } ms delay)` ) ;
79
86
// TODO: Look into better async scheduling..
80
87
const updateSettings = ( ) =>
81
88
void SettingsManager . updateSettings ( this . config ) ;
You can’t perform that action at this time.
0 commit comments