@@ -186,7 +186,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
186186 async scanAndFix ( ) {
187187 log . debug ( 'Starting scan and fix process' , this . auditContext ) ;
188188 let { ctSchema, gfSchema } = this . getCtAndGfSchema ( ) ;
189- log . debug ( `Retrieved ${ ctSchema ?. length || 0 } content types and ${ gfSchema ?. length || 0 } global fields` , this . auditContext ) ;
189+ log . info ( `Retrieved ${ ctSchema ?. length || 0 } content types and ${ gfSchema ?. length || 0 } global fields` , this . auditContext ) ;
190190
191191 let missingCtRefs ,
192192 missingGfRefs ,
@@ -240,27 +240,28 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
240240
241241 switch ( module ) {
242242 case 'assets' :
243- log . debug ( 'Executing assets audit' , this . auditContext ) ;
243+ log . info ( 'Executing assets audit' , this . auditContext ) ;
244244 missingEnvLocalesInAssets = await new Assets ( cloneDeep ( constructorParam ) ) . run ( ) ;
245245 await this . prepareReport ( module , missingEnvLocalesInAssets ) ;
246246 this . getAffectedData ( 'assets' , dataModuleWise [ 'assets' ] , missingEnvLocalesInAssets ) ;
247- log . debug ( `Assets audit completed. Found ${ Object . keys ( missingEnvLocalesInAssets || { } ) . length } issues` , this . auditContext ) ;
247+ log . success ( `Assets audit completed. Found ${ Object . keys ( missingEnvLocalesInAssets || { } ) . length } issues` , this . auditContext ) ;
248248 break ;
249249 case 'content-types' :
250- log . debug ( 'Executing content-types audit' , this . auditContext ) ;
250+ log . info ( 'Executing content-types audit' , this . auditContext ) ;
251251 missingCtRefs = await new ContentType ( cloneDeep ( constructorParam ) ) . run ( ) ;
252252 await this . prepareReport ( module , missingCtRefs ) ;
253253 this . getAffectedData ( 'content-types' , dataModuleWise [ 'content-types' ] , missingCtRefs ) ;
254- log . debug ( `Content-types audit completed. Found ${ Object . keys ( missingCtRefs || { } ) . length } issues` , this . auditContext ) ;
254+ log . success ( `Content-types audit completed. Found ${ Object . keys ( missingCtRefs || { } ) . length } issues` , this . auditContext ) ;
255255 break ;
256256 case 'global-fields' :
257- log . debug ( 'Executing global-fields audit' , this . auditContext ) ;
257+ log . info ( 'Executing global-fields audit' , this . auditContext ) ;
258258 missingGfRefs = await new GlobalField ( cloneDeep ( constructorParam ) ) . run ( ) ;
259259 await this . prepareReport ( module , missingGfRefs ) ;
260260 this . getAffectedData ( 'global-fields' , dataModuleWise [ 'global-fields' ] , missingGfRefs ) ;
261+ log . success ( `Global-fields audit completed. Found ${ Object . keys ( missingGfRefs || { } ) . length } issues` , this . auditContext ) ;
261262 break ;
262263 case 'entries' :
263- log . debug ( 'Executing entries audit' , this . auditContext ) ;
264+ log . info ( 'Executing entries audit' , this . auditContext ) ;
264265 missingEntry = await new Entries ( cloneDeep ( constructorParam ) ) . run ( ) ;
265266 missingEntryRefs = missingEntry . missingEntryRefs ?? { } ;
266267 missingSelectFeild = missingEntry . missingSelectFeild ?? { } ;
@@ -280,11 +281,11 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
280281
281282 await this . prepareReport ( 'Entry_Multiple_Fields' , missingMultipleFields ) ;
282283 this . getAffectedData ( 'entries' , dataModuleWise [ 'entries' ] , missingEntry ) ;
283- log . debug ( `Entries audit completed. Found ${ Object . keys ( missingEntryRefs || { } ) . length } reference issues` , this . auditContext ) ;
284+ log . success ( `Entries audit completed. Found ${ Object . keys ( missingEntryRefs || { } ) . length } reference issues` , this . auditContext ) ;
284285
285286 break ;
286287 case 'workflows' :
287- log . debug ( 'Executing workflows audit' , this . auditContext ) ;
288+ log . info ( 'Executing workflows audit' , this . auditContext ) ;
288289 missingCtRefsInWorkflow = await new Workflows ( {
289290 ctSchema,
290291 moduleName : module ,
@@ -293,34 +294,34 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
293294 } ) . run ( ) ;
294295 await this . prepareReport ( module , missingCtRefsInWorkflow ) ;
295296 this . getAffectedData ( 'workflows' , dataModuleWise [ 'workflows' ] , missingCtRefsInWorkflow ) ;
296- log . debug ( `Workflows audit completed. Found ${ Object . keys ( missingCtRefsInWorkflow || { } ) . length } issues` , this . auditContext ) ;
297+ log . success ( `Workflows audit completed. Found ${ Object . keys ( missingCtRefsInWorkflow || { } ) . length } issues` , this . auditContext ) ;
297298
298299 break ;
299300 case 'extensions' :
300- log . debug ( 'Executing extensions audit' , this . auditContext ) ;
301+ log . info ( 'Executing extensions audit' , this . auditContext ) ;
301302 missingCtRefsInExtensions = await new Extensions ( cloneDeep ( constructorParam ) ) . run ( ) ;
302303 await this . prepareReport ( module , missingCtRefsInExtensions ) ;
303304 this . getAffectedData ( 'extensions' , dataModuleWise [ 'extensions' ] , missingCtRefsInExtensions ) ;
304- log . debug ( `Extensions audit completed. Found ${ Object . keys ( missingCtRefsInExtensions || { } ) . length } issues` , this . auditContext ) ;
305+ log . success ( `Extensions audit completed. Found ${ Object . keys ( missingCtRefsInExtensions || { } ) . length } issues` , this . auditContext ) ;
305306 break ;
306307 case 'custom-roles' :
307- log . debug ( 'Executing custom-roles audit' , this . auditContext ) ;
308+ log . info ( 'Executing custom-roles audit' , this . auditContext ) ;
308309 missingRefInCustomRoles = await new CustomRoles ( cloneDeep ( constructorParam ) ) . run ( ) ;
309310 await this . prepareReport ( module , missingRefInCustomRoles ) ;
310311 this . getAffectedData ( 'custom-roles' , dataModuleWise [ 'custom-roles' ] , missingRefInCustomRoles ) ;
311- log . debug ( `Custom-roles audit completed. Found ${ Object . keys ( missingRefInCustomRoles || { } ) . length } issues` , this . auditContext ) ;
312+ log . success ( `Custom-roles audit completed. Found ${ Object . keys ( missingRefInCustomRoles || { } ) . length } issues` , this . auditContext ) ;
312313
313314 break ;
314315 case 'field-rules' :
315- log . debug ( 'Executing field-rules audit' , this . auditContext ) ;
316+ log . info ( 'Executing field-rules audit' , this . auditContext ) ;
316317 // NOTE: We are using the fixed content-type for validation of field rules
317318 const data = this . getCtAndGfSchema ( ) ;
318319 constructorParam . ctSchema = data . ctSchema ;
319320 constructorParam . gfSchema = data . gfSchema ;
320321 missingFieldRules = await new FieldRule ( cloneDeep ( constructorParam ) ) . run ( ) ;
321322 await this . prepareReport ( module , missingFieldRules ) ;
322323 this . getAffectedData ( 'field-rules' , dataModuleWise [ 'content-types' ] , missingFieldRules ) ;
323- log . debug ( `Field-rules audit completed. Found ${ Object . keys ( missingFieldRules || { } ) . length } issues` , this . auditContext ) ;
324+ log . success ( `Field-rules audit completed. Found ${ Object . keys ( missingFieldRules || { } ) . length } issues` , this . auditContext ) ;
324325 break ;
325326 }
326327
@@ -551,7 +552,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
551552 ) : Promise < void > {
552553 log . debug ( `Preparing report for module: ${ moduleName } ` , this . auditContext ) ;
553554 log . debug ( `Report path: ${ this . sharedConfig . reportPath } ` , this . auditContext ) ;
554- log . debug ( `Missing references count: ${ Object . keys ( listOfMissingRefs ) . length } ` , this . auditContext ) ;
555+ log . info ( `Missing references count: ${ Object . keys ( listOfMissingRefs ) . length } ` , this . auditContext ) ;
555556
556557 if ( isEmpty ( listOfMissingRefs ) ) {
557558 log . debug ( `No missing references found for ${ moduleName } , skipping report generation` , this . auditContext ) ;
0 commit comments