More concise cmp in date check
Remove false comment
Enable logging, use logger instead of warn