[PATCH] log: add the thread id in the log messages