Remove unneeded printlns, init the logger earlier so I can use it during the sanity check.