use warn instead of warning when logging a warning