->add_error() is deprecated from WC 2.1, use wc_add_notice()
Use the log system provided by WC