Avoid a loop when logging