Add logging for warnings.