mirror of
https://github.com/meld-cp/obsidian-build.git
synced 2026-07-22 07:30:25 +00:00
remove logging
This commit is contained in:
parent
88f500371a
commit
ee9b18c40d
3 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue