mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
log sync errors
This commit is contained in:
parent
b4af0ca825
commit
6e30572e6d
1 changed files with 8 additions and 1 deletions
|
@ -165,8 +165,15 @@ where
|
|||
self.skey.as_ref().unwrap()
|
||||
}
|
||||
|
||||
#[allow(clippy::useless_let_if_seq)]
|
||||
pub async fn sync(&mut self, hkey: &str) -> Result<()> {
|
||||
self.sync_inner(hkey).await.map_err(|e| {
|
||||
debug!(self.log, "sync error: {:?}", e);
|
||||
e
|
||||
})
|
||||
}
|
||||
|
||||
#[allow(clippy::useless_let_if_seq)]
|
||||
async fn sync_inner(&mut self, hkey: &str) -> Result<()> {
|
||||
self.register_changes()?;
|
||||
|
||||
let meta = self.ctx.get_meta()?;
|
||||
|
|
Loading…
Reference in a new issue