From a5eebd4b6bec419e96b01b6b72fe301c14ffbd59 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Fri, 30 Sep 2011 09:21:03 +0200 Subject: [PATCH] Make "syncing folder structure" a debug level log entry It happens quick, and clutters the log. So we can usually skip this. We will output a log entry when we actually create a new folder anyway. Signed-off-by: Sebastian Spaeth --- offlineimap/ui/UIBase.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py index 4e53d32..6d92152 100644 --- a/offlineimap/ui/UIBase.py +++ b/offlineimap/ui/UIBase.py @@ -250,10 +250,11 @@ class UIBase: self._msg("*** Finished account '%s' in %d:%02d" % (account, sec // 60, sec % 60)) - def syncfolders(s, srcrepos, destrepos): - if s.verbose >= 0: - s._msg("Copying folder structure from %s to %s" % \ - (s.getnicename(srcrepos), s.getnicename(destrepos))) + def syncfolders(self, src_repo, dst_repo): + """Log 'Copying folder structure...'""" + if self.verbose < 0: return + self.debug('', "Copying folder structure from %s to %s" % \ + (src_repo, dst_repo)) ############################## Folder syncing def syncingfolder(s, srcrepos, srcfolder, destrepos, destfolder):