proper error reporting for stdlog_log()