Permalink
Browse files

Add verbose output to wprexplode

This makes figuring out what input host/path corresponds to what file on
disk much easier.
  • Loading branch information...
1 parent 0ba8928 commit 7ccb4b54de363773d6eb607f3adf67f7894b1b8e @nwgh nwgh committed Mar 19, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/wprexplode.py
View
@@ -53,12 +53,16 @@ def explode_archive(wprfile, archiveroot):
if url.query:
name = name + '?' + url.query
+ sys.stdout.write('Translating %s "%s" -> ' % (request.host, name))
+
# Hash everything up
name = hashlib.sha1(name).hexdigest()
# Make apache recognize the file as an "asis" file
name += '.asis'
+ sys.stdout.write('"%s"\n' % (name,))
+
# Write our data out
fname = os.path.join(hostdir, name)
response = har[request]

0 comments on commit 7ccb4b5

Please sign in to comment.