Add thread id to debug logs

Makes it easier to troubleshoot S3 debug logs.
Merge branch 'add-thread-id' into develop

* add-thread-id:
  Add thread id to debug logs