Fix log handling a bit