# How to log bad data in an import script

**URL:** <https://meta.discourse.org/t/how-to-log-bad-data-in-an-import-script/49034>\
**Category:** Development\
**Created:** [August 22, 2016, 11:41pm UTC](https://meta.discourse.org/t/how-to-log-bad-data-in-an-import-script/49034 "2016-08-22T23:41:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [August 23, 2016, 1:14am UTC](https://meta.discourse.org/t/how-to-log-bad-data-in-an-import-script/49034/4 "2016-08-23T01:14:01Z")

</div>

```
$stderr.puts "I'm in a stderr!"

```

Probably worth wrapping it up in some sort of `print_error` method, for clarity and overridability.

---

_[View the full topic](https://meta.discourse.org/t/how-to-log-bad-data-in-an-import-script/49034)._
