~dobey/ubuntuone-client/prefs-sync-status

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/local_rescan.py

  • Committer: Tarmac
  • Author(s): natalia.bidart at canonical
  • Date: 2010-03-18 16:59:12 UTC
  • mfrom: (436.1.3 remove-so-many-debugs)
  • Revision ID: dobey@wayofthemonkey.com-20100318165912-cv3e1pradly0kj42
Tweak a bit debug messages for Local/Server Rescan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
 
265
265
        def check_stat(fullname, statinfo):
266
266
            """Generate event if stats differ."""
267
 
            log_debug("comp yield STAT prv: %s", statinfo)
268
267
            newstat = os.stat(fullname)
269
 
            log_debug("comp yield STAT new: %s", newstat)
270
268
            if statinfo != newstat:
 
269
                log_debug("stat differ for: %r", fullname)
271
270
                events.append(('FS_FILE_CLOSE_WRITE', fullname))
272
271
 
273
272
        # check all directories
293
292
                        to_scan_later.append(fullname)
294
293
                    elif changed == "NONE":
295
294
                        # it's old, we should scan it later
296
 
                        log_debug("comp yield: dir %r will be scaned later!",
 
295
                        log_debug("comp yield: dir %r will be scaned later because is in NONE!",
297
296
                                                                      fullname)
298
297
                        to_scan_later.append(fullname)
299
298
                    else:
324
323
                        events.append(('FS_FILE_CLOSE_WRITE', fullname))
325
324
                    elif changed == "NONE":
326
325
                        # what about stat info?
327
 
                        log_debug("comp yield: file %r was here.. stat?",
 
326
                        log_debug("comp yield: file %r was here, let's do check_stat",
328
327
                                                                    fullname)
329
328
                        check_stat(fullname, statinfo)
330
329
                    elif changed == "SERVER":