remove logging

This commit is contained in:
Cleon 2023-01-07 19:42:21 +13:00
parent 88f500371a
commit ee9b18c40d
3 changed files with 3 additions and 6 deletions

View file

@ -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);
}

View file

@ -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;
}

View file

@ -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