@@ -16,8 +16,9 @@ export class ModuleExporter {
1616
1717 async exportModule ( moduleName : Modules , options : ExportOptions = { } ) : Promise < void > {
1818 try {
19- log . info ( `Exporting module: ${ moduleName } ` , this . logContext ) ;
20- log . debug ( `Building export command for module: ${ moduleName } ` , this . logContext ) ;
19+ const moduleLogContext = createLogContext ( this . exportQueryConfig , moduleName ) ;
20+ log . info ( `Exporting module: ${ moduleName } ` , moduleLogContext ) ;
21+ log . debug ( `Building export command for module: ${ moduleName } ` , moduleLogContext ) ;
2122
2223 // Build command arguments
2324 const cmd = this . buildExportCommand ( moduleName , options ) ;
@@ -28,7 +29,7 @@ export class ModuleExporter {
2829
2930 // Create export command instance
3031 await ExportCommand . run ( cmd ) ;
31- log . debug ( `Export command completed for module: ${ moduleName } ` , this . logContext ) ;
32+ log . debug ( `Export command completed for module: ${ moduleName } ` , moduleLogContext ) ;
3233
3334 // Read the exported data
3435 // const data = await this.readExportedData(moduleName, options);
@@ -38,9 +39,10 @@ export class ModuleExporter {
3839 }
3940
4041 // success message
41- log . success ( `Successfully exported ${ moduleName } ` , this . logContext ) ;
42+ log . success ( `Successfully exported ${ moduleName } ` , moduleLogContext ) ;
4243 } catch ( error ) {
43- log . error ( `Failed to export ${ moduleName } : ${ formatError ( error ) } ` , this . logContext ) ;
44+ const moduleLogContext = createLogContext ( this . exportQueryConfig , moduleName ) ;
45+ log . error ( `Failed to export ${ moduleName } : ${ formatError ( error ) } ` , moduleLogContext ) ;
4446 throw error ;
4547 }
4648 }
0 commit comments