From 4a956e2a6595694f151b0cbf987991c702bb9996 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 14 Jan 2019 13:21:24 +0530 Subject: [PATCH] debugging --- oml/item/models.py | 1 + oml/item/scan.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/oml/item/models.py b/oml/item/models.py index 27e4191..9448260 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -800,6 +800,7 @@ class File(db.Model): if os.path.exists(path) and os.path.exists(current_path): os.unlink(path) return + logger.debug('mv "%s" "%s"', self.path, new_path) self.path = new_path self.save() for folder in set(os.path.dirname(p) for p in [current_path, path]): diff --git a/oml/item/scan.py b/oml/item/scan.py index b6fa307..d2f3fa6 100644 --- a/oml/item/scan.py +++ b/oml/item/scan.py @@ -172,7 +172,6 @@ def run_scan(): elif user not in file.item.users: item = file.item item.add_user(user) - logger.debug('add %s to local user', id) add_record('additem', item.id, file.info) add_record('edititem', item.id, item.meta) @@ -194,7 +193,6 @@ def run_scan(): library_items = set([str(i) for i in user.library.items]) gone = library_items - ids if gone: - logger.debug('cleaning up %s deleted records', len(gone)) for id in gone: i = Item.get(id) path = i.get_path()