[config] Use logging in config.
[worker_manager] Fix python syntax in exception.