duh. dont put logging after the thing thats meant to return.