thread id in debug log
added thread id to debug, error and database logs
Merge branch 'tid_debug' into bio-master