add logger for dead lock