| 109 | } |
| 110 | |
| 111 | void cerr_logger::error(prod &query, const dut::failure &e) |
| 112 | { |
| 113 | (void)query; |
| 114 | istringstream err(e.what()); |
| 115 | string line; |
| 116 | |
| 117 | if (columns-1 == (queries%columns)) { |
| 118 | cerr << endl; |
| 119 | } |
| 120 | getline(err, line); |
| 121 | errors[line]++; |
| 122 | if (dynamic_cast<const dut::timeout *>(&e)) |
| 123 | cerr << "t"; |
| 124 | else if (dynamic_cast<const dut::syntax *>(&e)) |
| 125 | cerr << "S"; |
| 126 | else if (dynamic_cast<const dut::broken *>(&e)) |
| 127 | cerr << "C"; |
| 128 | else |
| 129 | cerr << "e"; |
| 130 | } |
| 131 | |
| 132 | pqxx_logger::pqxx_logger(std::string target, std::string conninfo, struct schema &s) |
| 133 | { |