Some minor tweaks to logging in api