you need to import logging before it can be used. duh.