Remove early return from logging function