MCPcopy Create free account
hub / github.com/MariaDB/server / stop_logging

Function stop_logging

plugin/server_audit/server_audit.cc:881–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879
880
881static int stop_logging()
882{
883 last_error_buf[0]= 0;
884 if (output_type == OUTPUT_FILE && logfile)
885 {
886 logger_close(logfile);
887 logfile= NULL;
888 }
889 else if (output_type == OUTPUT_SYSLOG)
890 {
891 closelog();
892 }
893 error_header();
894 fprintf(stderr, "logging was stopped.\n");
895 is_active= 0;
896 return 0;
897}
898
899
900static void setup_connection_simple(struct connection_info *ci)

Callers 6

server_audit_deinitFunction · 0.85
update_file_pathFunction · 0.85
update_file_buffer_sizeFunction · 0.85
update_output_typeFunction · 0.85
update_loggingFunction · 0.85
update_syslog_identFunction · 0.85

Calls 3

logger_closeFunction · 0.85
closelogFunction · 0.85
error_headerFunction · 0.85

Tested by

no test coverage detected