Use python logging facility for debug messages. Do not use pathnames in hashes.