More code cleanups.
factor out varargs logging