Include thread name in error log

Signed-off-by: Ross Allan <rallanpcl@gmail.com>