print error logs to stderr