Skip to content

Commit

Permalink
loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Sep 15, 2022
1 parent 9bd23cd commit eaa792c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## 2.6.2
### Shiny new things
- aligment options for every column (text,number and formula) [ISSUE#292](https://github.com/RafaelGB/obsidian-db-folder/issues/292)
- Option for make inline fields as default [ISSUE#304](https://github.com/RafaelGB/obsidian-db-folder/issues/304)
- Option to choose where to save new inline fields (top or bottom)[ISSUE#304](https://github.com/RafaelGB/obsidian-db-folder/issues/304)
Expand Down
3 changes: 2 additions & 1 deletion src/components/cellTypes/Editor/filepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { App, TFile, setIcon } from 'obsidian';
import StateManager from 'StateManager';

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

const linkRegex = /\B\[\[([^\]]*)$/;
const embedRegex = /\B!\[\[([^\]]*)$/;
Expand Down Expand Up @@ -419,7 +420,7 @@ export function getBlockSearchConfig(
app.vault.modify(result.item.file, newContent);
})
.catch((e) => {
console.error(e);
LOGGER.error(e);
});

subpath += blockId;
Expand Down
4 changes: 3 additions & 1 deletion src/helpers/Emitter.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { LOGGER } from "services/Logger";

interface EventsMap {
[event: string]: any;
}
Expand Down Expand Up @@ -45,7 +47,7 @@ export function createEmitter<
const scopedHandlers = this.events[scopedKey];

if (!globalHandlers && !scopedHandlers) {
console.warn('Event emitted with no handler', event, id);
LOGGER.warn('Event emitted with no handler', event, id);
return;
}

Expand Down
1 change: 0 additions & 1 deletion src/services/DataviewService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ class DataviewProxy {
}

private parseToCalendar(wrapped: WrappedLiteral, format?: string): DateTime {
console.log(wrapped);
if (wrapped.type === 'string') {
let calendarCandidate;
if (format) {
Expand Down

0 comments on commit eaa792c

Please sign in to comment.