| 131 | } |
| 132 | |
| 133 | void log::vmsg7(size_t section, size_t level, const char* fname, |
| 134 | int line, const char* func, const char* fmt, va_list ap) |
| 135 | { |
| 136 | if (!acl_do_debug((int) section, (int) level)) { |
| 137 | return; |
| 138 | } |
| 139 | |
| 140 | const char* ptr = strrchr(fname, '/'); |
| 141 | if (ptr) { |
| 142 | fname = ptr + 1; |
| 143 | } |
| 144 | #ifdef ACL_WINDOWS |
| 145 | if (ptr == NULL) { |
| 146 | ptr = strrchr(fname, '\\'); |
| 147 | if (ptr) { |
| 148 | fname = ptr + 1; |
| 149 | } |
| 150 | } |
| 151 | #endif |
| 152 | |
| 153 | acl::string s; |
| 154 | s.format("%s(%d), %s: ", fname, line, func); |
| 155 | s.vformat_append(fmt, ap); |
| 156 | acl_msg_info("%s", s.c_str()); |
| 157 | } |
| 158 | |
| 159 | void log::warn1(const char* fmt, ...) |
| 160 | { |
nothing calls this directly
no test coverage detected