Use logging module for warnings