Add pid in the Logging message is an easy way to identify which thread belongs in an multithreaded execution.