Manage naming collision for log method on ir.error
Since a2eaa8f46096, ModelStorage has a generic log method which collides with the exiting log method introduced in f6b0d437b5b6. For backward compatibility we test the arguments to decide which version is actually called.
Closes #12333 (closed)