PAHMA-979: logging improvements.