Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit eaa792c

Browse files
committed
loggers
1 parent 9bd23cd commit eaa792c

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

docs/docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## 2.6.2
2+
### Shiny new things
23
- aligment options for every column (text,number and formula) [ISSUE#292](https://github.com/RafaelGB/obsidian-db-folder/issues/292)
34
- Option for make inline fields as default [ISSUE#304](https://github.com/RafaelGB/obsidian-db-folder/issues/304)
45
- Option to choose where to save new inline fields (top or bottom)[ISSUE#304](https://github.com/RafaelGB/obsidian-db-folder/issues/304)

src/components/cellTypes/Editor/filepicker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { App, TFile, setIcon } from 'obsidian';
55
import StateManager from 'StateManager';
66

77
import { StrategyProps } from 'components/cellTypes/Editor/textcomplete/textcomplete-core';
8+
import { LOGGER } from 'services/Logger';
89

910
const linkRegex = /\B\[\[([^\]]*)$/;
1011
const embedRegex = /\B!\[\[([^\]]*)$/;
@@ -419,7 +420,7 @@ export function getBlockSearchConfig(
419420
app.vault.modify(result.item.file, newContent);
420421
})
421422
.catch((e) => {
422-
console.error(e);
423+
LOGGER.error(e);
423424
});
424425

425426
subpath += blockId;

src/helpers/Emitter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { LOGGER } from "services/Logger";
2+
13
interface EventsMap {
24
[event: string]: any;
35
}
@@ -45,7 +47,7 @@ export function createEmitter<
4547
const scopedHandlers = this.events[scopedKey];
4648

4749
if (!globalHandlers && !scopedHandlers) {
48-
console.warn('Event emitted with no handler', event, id);
50+
LOGGER.warn('Event emitted with no handler', event, id);
4951
return;
5052
}
5153

src/services/DataviewService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ class DataviewProxy {
149149
}
150150

151151
private parseToCalendar(wrapped: WrappedLiteral, format?: string): DateTime {
152-
console.log(wrapped);
153152
if (wrapped.type === 'string') {
154153
let calendarCandidate;
155154
if (format) {

0 commit comments

Comments
 (0)