Use python logger instead of print(), and change debug levels on some msgs