warn in error instead of log