Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Apr 24, 2024
1 parent 9b7e289 commit e02c6e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,14 +398,15 @@ export default class OmnivorePlugin extends Plugin {
}
}

manualSync && new Notice('🎉 Sync completed')

this.settings.syncAt = DateTime.local().toFormat(DATE_FORMAT)

if (!hasNextPage) {
break
}
}

console.log('obsidian-omnivore sync completed', this.settings.syncAt)
manualSync && new Notice('🎉 Sync completed')
} catch (e) {
new Notice('Failed to fetch items')
console.error(e)
Expand Down

0 comments on commit e02c6e4

Please sign in to comment.