Fixing a few logging bits