Skip to content

Commit

Permalink
PP-663 (Partial): Reduce logging volume (#257)
Browse files Browse the repository at this point in the history
* Stop logging account icons.

* It is possible for book database entries to disappear before syncs.
  • Loading branch information
io7m authored Nov 10, 2023
1 parent 19c4d00 commit 2a3380a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@ internal class BServiceOpSyncOneAccount(
bookmark.bookmarkId.value
)

if (!syncable.account.bookDatabase.books().contains(bookmark.book)) {
this.logger.debug(
"[{}]: we no longer have book {}",
this.profile.id.uuid,
bookmark.bookmarkId.value
)
continue
}

val entry = syncable.account.bookDatabase.entry(bookmark.book)

when (bookmark) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ object ImageAccountIcons {
iconView: ImageView,
) {
val uri = account.logoURI?.hrefURI
this.logger.debug("configuring account logo: {}", uri)

if (uri == null) {
iconView.setImageResource(defaultIcon)
return
Expand Down

0 comments on commit 2a3380a

Please sign in to comment.