Rejig code and logging in preparation for extra cleanup methods.
authorMartin Schwenke <martin@meltin.net>
Tue, 21 Jul 2009 07:46:13 +0000 (17:46 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 21 Jul 2009 07:46:13 +0000 (17:46 +1000)
commit4322b71c1861245c01198e2cf3ab9f503c01695e
treee801b7c55b13dbf999a7e522ee1ebca8a7adc2de
parentc7ce93e6a0fa2fb1cea279941d281838ca6dfcda
Rejig code and logging in preparation for extra cleanup methods.

* Make Cache.scan() no longer private.

* Prefix log messages with function name.  This could be done by using
  %(funcName)s in the logging.Formatter but that option was only added
  in Python 2.5 and this will need to run on Python 2.4.

* Move summary log messages to main and add some extra logging to make
  things clearer.

Signed-off-by: Martin Schwenke <martin@meltin.net>
migrate/remote-cache-clean.py