diff --git a/src/plug.ts b/src/plug.ts index e3c366a1..a61f492b 100644 --- a/src/plug.ts +++ b/src/plug.ts @@ -367,8 +367,6 @@ export class GlobalPlug implements Plug { } public get fetch(): Plug['fetch'] { - const logger = this.sdk.getLogger(); - return this.eap( 'fetch', ( @@ -376,6 +374,7 @@ export class GlobalPlug implements Plug { options: FetchOptions = {}, ): Promise> => { const [id, version] = slotId.split('@') as [string, `${number}` | 'latest' | undefined]; + const logger = this.sdk.getLogger(); return this.sdk .contentFetcher