adding support for logging in publish.py