use logging vs print