File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,14 @@ export class Eko {
42
42
return logger ;
43
43
}
44
44
45
+ public getLoggerInstaceUUID ( ) : string {
46
+ if ( this . ekoConfig . loggerInstaceUUID ) {
47
+ return this . ekoConfig . loggerInstaceUUID ;
48
+ } else {
49
+ throw Error ( "loggerInstaceUUID is not configured" ) ;
50
+ }
51
+ }
52
+
45
53
private buildEkoConfig ( ekoConfig : Partial < EkoConfig > | undefined ) : EkoConfig {
46
54
if ( ! ekoConfig ) {
47
55
logger . warn ( "`ekoConfig` is missing when construct `Eko` instance" ) ;
@@ -51,6 +59,7 @@ export class Eko {
51
59
chromeProxy : typeof chrome === 'undefined' ? undefined : chrome ,
52
60
callback : undefined ,
53
61
patchServerUrl : "http://127.0.0.1:8000/eko" ,
62
+ loggerInstaceUUID : undefined ,
54
63
} ;
55
64
return {
56
65
...defaultEkoConfig ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export interface EkoConfig {
27
27
chromeProxy ?: any , // should be original `chrome` or a proxy created by `createChromeApiProxy()`
28
28
callback ?: WorkflowCallback ,
29
29
patchServerUrl ?: string ,
30
+ loggerInstaceUUID ?: string ,
30
31
}
31
32
32
33
You can’t perform that action at this time.
0 commit comments