MySQL 8.4.2
Source Code Documentation
|
#include <mysql/components/services/log_service.h>
Go to the source code of this file.
Functions | |
log_service_error | log_error_read_backtrace (const char *log_name) |
Read stacktrace from previous failure. More... | |
log_service_error log_error_read_backtrace | ( | const char * | log_name | ) |
Read stacktrace from previous failure.
The signal-handler attempts to write a stacktrace to stderr. As stderr (and stdout) are redirected to the "traditional" error-log, that's where we'll have to look for stacktraces, even if we use a different log-sink otherwise (e.g. JSON, syslog, etc.).
Once we have determined whether such a log exists and is readable, we call
It should be noted that at the point this function is normally called, buffered error logging will not have been flushed yet.
log_name | The log file to read (log_error_dest). |
LOG_SERVICE_SUCCESS | Success (log read and parsed) |
LOG_SERVICE_UNABLE_TO_READ | Could not read/access() file |
LOG_SERVICE_INVALID_ARGUMENT | Invalid log-file name |
LOG_SERVICE_ARGUMENT_TOO_LONG | File-name too long |
otherwise | Return value from reader |