| 1249 | |
| 1250 | |
| 1251 | bool LOGGER::log_command(THD *thd, enum enum_server_command command) |
| 1252 | { |
| 1253 | /* |
| 1254 | Log command if we have at least one log event handler enabled and want |
| 1255 | to log this king of commands |
| 1256 | */ |
| 1257 | if (*general_log_handler_list && (what_to_log & (1L << (uint) command))) |
| 1258 | { |
| 1259 | if ((thd->variables.option_bits & OPTION_LOG_OFF)) |
| 1260 | { |
| 1261 | /* No logging */ |
| 1262 | return FALSE; |
| 1263 | } |
| 1264 | |
| 1265 | return TRUE; |
| 1266 | } |
| 1267 | |
| 1268 | return FALSE; |
| 1269 | } |
| 1270 | |
| 1271 | |
| 1272 | bool general_log_print(THD *thd, enum enum_server_command command, |
no outgoing calls
no test coverage detected