similarly 
logger.error(#{data}) if logger.debug?
instead of putting STDERR in front of the string?