From ee9b18c40d4eacc6d043b9b69d57c52a994e7406 Mon Sep 17 00:00:00 2001 From: Cleon <18450687+meld-cp@users.noreply.github.com> Date: Sat, 7 Jan 2023 19:42:21 +1300 Subject: [PATCH] remove logging --- src/main.ts | 1 - src/parser.ts | 3 +-- src/rci-markers.ts | 5 ++--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.ts b/src/main.ts index 4290eb5..3335584 100644 --- a/src/main.ts +++ b/src/main.ts @@ -142,7 +142,6 @@ export default class MeldBuildPlugin extends Plugin { const runner = await compiler.compile( logger, view, runGroupTag ); runner?.(); }catch(e){ - console.debug('here'); await logger.error(e); new Notice(e); } diff --git a/src/parser.ts b/src/parser.ts index 660eb60..74b998e 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -48,7 +48,6 @@ export class Parser { } // filter languages - console.debug('Parser::fetchCodeBlocks',{lines}); const codeBlockInfo = this.extractCodeBlockInfo(lines[0]); if ( codeBlockInfo == null ){ console.debug('Parser::fetchCodeBlocks, codeBlockInfo is null', {content}); @@ -67,7 +66,7 @@ export class Parser { result.push( codeBlock ); }); - console.debug('Parser::fetchCodeBlocks', {result}); + return result; } diff --git a/src/rci-markers.ts b/src/rci-markers.ts index f30fa2c..f31846c 100644 --- a/src/rci-markers.ts +++ b/src/rci-markers.ts @@ -119,7 +119,7 @@ export class MarkerRunContextImplemention implements TMarkerRunContext { if ( this.newValues.has( marker.name ) ){ continue; } - console.log('apply::clearing marker value', {marker}); + //console.log('apply::clearing marker value', {marker}); this.newValues.set( marker.name, '' ); } } @@ -129,11 +129,10 @@ export class MarkerRunContextImplemention implements TMarkerRunContext { for ( const key of this.newValues.keys() ) { const currentMarkers = markers.filter( e => e.name == key ); if ( currentMarkers.length == 0 ){ - console.debug('apply::marker isn\'t in file',{key, markers, targetFileContent}); + //console.debug('apply::marker isn\'t in file',{key, markers, targetFileContent}); continue; // marker isn't in file } - const newValue = this.newValues.get(key) ?? ''; // build replacement regex