Log every call to setId

See ticket #10312.