improve logging
Merge branch 'master' into test-env

* master:
  improve logging