timob-16368: log only if in the debug mode.