File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ export const NO_EVENT_PROCESSOR = 'No event processor is provided';
41
41
export const NO_VARIATION_FOR_EXPERIMENT_KEY = 'No variation key %s defined in datafile for experiment %s.' ;
42
42
export const ODP_CONFIG_NOT_AVAILABLE = 'ODP config is not available.' ;
43
43
export const ODP_EVENT_FAILED = 'ODP event send failed.' ;
44
- export const ODP_EVENT_MANAGER_IS_NOT_RUNNING = 'ODP event manager is not running.' ;
45
44
export const ODP_EVENTS_SHOULD_HAVE_ATLEAST_ONE_KEY_VALUE = 'ODP events should have at least one key-value pair in identifiers.' ;
46
45
export const ODP_EVENT_FAILED_ODP_MANAGER_MISSING = 'ODP Event failed to send. (ODP Manager not available).' ;
47
46
export const ODP_NOT_INTEGRATED = 'ODP is not integrated' ;
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ import {
27
27
EVENT_ACTION_INVALID ,
28
28
EVENT_DATA_INVALID ,
29
29
FAILED_TO_SEND_ODP_EVENTS ,
30
- ODP_EVENT_MANAGER_IS_NOT_RUNNING ,
31
30
ODP_EVENTS_SHOULD_HAVE_ATLEAST_ONE_KEY_VALUE ,
32
31
ODP_NOT_INTEGRATED ,
33
32
FAILED_TO_DISPATCH_EVENTS ,
34
- ODP_EVENT_MANAGER_STOPPED
33
+ ODP_EVENT_MANAGER_STOPPED ,
34
+ SERVICE_NOT_RUNNING
35
35
} from 'error_message' ;
36
36
import { OptimizelyError } from '../../error/optimizly_error' ;
37
37
import { LoggerFacade } from '../../logging/logger' ;
@@ -178,7 +178,7 @@ export class DefaultOdpEventManager extends BaseService implements OdpEventManag
178
178
179
179
sendEvent ( event : OdpEvent ) : void {
180
180
if ( ! this . isRunning ( ) ) {
181
- this . logger ?. error ( ODP_EVENT_MANAGER_IS_NOT_RUNNING ) ;
181
+ this . logger ?. error ( SERVICE_NOT_RUNNING , 'OdpEventManager' ) ;
182
182
return ;
183
183
}
184
184
You can’t perform that action at this time.
0 commit comments