bin/wu.py: fixed bugs with internal logging