Skip to content

Commit

Permalink
馃攰 update log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Mar 19, 2024
1 parent f28ab14 commit 2ddda78
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/advancedSlides-SettingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class AdvancedSlidesSettingTab extends PluginSettingTab {
) {
this.newSettings.paneMode = value;
} else {
console.log('Invalid pane mode', value);
console.debug('Invalid pane mode', value);
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/obsidian/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class CommentParser {

return new Comment(type, attributes);
} catch (ex) {
console.log('ERROR: Cannot parse comment: ' + comment);
console.error('ERROR: Cannot parse comment: ' + comment);
return null;
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/obsidian/markdownProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export class MarkdownProcessor {
options.defaultTemplate = null;

if (circuitCounter > 9) {
console.log('WARNING: Circuit in template hierarchy detected!');
console.warn(
'WARNING: Circuit in template hierarchy detected!',
);
break;
}
}
Expand Down Expand Up @@ -322,7 +324,7 @@ export class MarkdownProcessor {

log(name: string, before: string, after: string) {
if (before != after) {
console.log(`${name}: ${after}`);
console.debug(`${name}: ${after}`);
}
}
}
4 changes: 2 additions & 2 deletions src/obsidian/obsidianUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@ export class ObsidianUtils implements ImageCollector {
}

resetImageCollection() {
console.log('enable image collection for exported slides');
console.debug('enable image collection for exported slides');
this.images.clear();
this.isCollecting = true;
}

disableImageCollection() {
console.log('stop collecting images');
console.debug('stop collecting images');
this.isCollecting = false;
}

Expand Down
4 changes: 2 additions & 2 deletions src/obsidian/processors/templateProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class TemplateProcessor {
md = this.transformSlide(md);

if (circuitCounter > 9) {
console.log(
console.warn(
'WARNING: Circuit in template hierarchy detected!',
);
break;
Expand All @@ -114,7 +114,7 @@ export class TemplateProcessor {
output = output.split(slide).join(md);
return md;
} catch (error) {
console.log(
console.error(
'Cannot process template: ' + error,
);
return slide;
Expand Down
2 changes: 1 addition & 1 deletion src/reveal/revealServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class RevealServer {

async stop() {
if (this.running) {
console.log('stopping Slides Extended server', this.running);
console.info('stopping Slides Extended server', this.running);
await this._server.close();
} else {
console.debug('Slides Extended server is not running');
Expand Down

0 comments on commit 2ddda78

Please sign in to comment.