Support logging correctly when msg is mutated