Added physical log paths to message which is printed on the start screen. Refers to bug #506, http://bugs.skysql.com/show_bug.cgi?id=506
This commit is contained in:
parent
bc320d1514
commit
68f8e32f58
@ -1603,7 +1603,7 @@ static bool fnames_conf_init(
|
||||
ss_dfprintf(stderr, "%s ", argv[i]);
|
||||
}
|
||||
ss_dfprintf(stderr, "\n");*/
|
||||
|
||||
#if defined(NOT_USED)
|
||||
fprintf(stderr,
|
||||
"Error log :\t%s/%s1%s\n"
|
||||
"Message log :\t%s/%s1%s\n"
|
||||
@ -1621,7 +1621,7 @@ static bool fnames_conf_init(
|
||||
fn->fn_logpath,
|
||||
fn->fn_debug_prefix,
|
||||
fn->fn_debug_suffix);
|
||||
|
||||
#endif
|
||||
succp = true;
|
||||
fn->fn_state = RUN;
|
||||
CHK_FNAMES_CONF(fn);
|
||||
@ -2092,8 +2092,18 @@ static bool logfile_init(
|
||||
logfile->lf_full_link_name =
|
||||
form_full_file_name(strparts,
|
||||
logfile->lf_name_seqno,
|
||||
2);
|
||||
2);
|
||||
fprintf(stderr, "%s\t: %s->%s\n",
|
||||
STRLOGNAME(logfile_id),
|
||||
logfile->lf_full_link_name,
|
||||
logfile->lf_full_file_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "%s\t: %s\n",
|
||||
STRLOGNAME(logfile_id),
|
||||
logfile->lf_full_file_name);
|
||||
}
|
||||
/**
|
||||
* At least one of the files couldn't be created. Increase
|
||||
* sequence number and retry until succeeds.
|
||||
|
@ -142,6 +142,12 @@ typedef enum skygw_chk_t {
|
||||
((i) == LOGFILE_ERROR ? "LOGFILE_ERROR" : \
|
||||
((i) == LOGFILE_DEBUG ? "LOGFILE_DEBUG" : \
|
||||
"Unknown logfile type"))))
|
||||
|
||||
#define STRLOGNAME(n) ((n) == LOGFILE_TRACE ? "Trace log" : \
|
||||
((n) == LOGFILE_MESSAGE ? "Message log" : \
|
||||
((n) == LOGFILE_ERROR ? "Error log" : \
|
||||
((n) == LOGFILE_DEBUG ? "Debug log" : \
|
||||
"Unknown log file type"))))
|
||||
|
||||
#define STRPACKETTYPE(p) ((p) == MYSQL_COM_INIT_DB ? "COM_INIT_DB" : \
|
||||
((p) == MYSQL_COM_CREATE_DB ? "COM_CREATE_DB" : \
|
||||
|
Loading…
x
Reference in New Issue
Block a user