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:
@ -1603,7 +1603,7 @@ static bool fnames_conf_init(
|
|||||||
ss_dfprintf(stderr, "%s ", argv[i]);
|
ss_dfprintf(stderr, "%s ", argv[i]);
|
||||||
}
|
}
|
||||||
ss_dfprintf(stderr, "\n");*/
|
ss_dfprintf(stderr, "\n");*/
|
||||||
|
#if defined(NOT_USED)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Error log :\t%s/%s1%s\n"
|
"Error log :\t%s/%s1%s\n"
|
||||||
"Message 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_logpath,
|
||||||
fn->fn_debug_prefix,
|
fn->fn_debug_prefix,
|
||||||
fn->fn_debug_suffix);
|
fn->fn_debug_suffix);
|
||||||
|
#endif
|
||||||
succp = true;
|
succp = true;
|
||||||
fn->fn_state = RUN;
|
fn->fn_state = RUN;
|
||||||
CHK_FNAMES_CONF(fn);
|
CHK_FNAMES_CONF(fn);
|
||||||
@ -2093,6 +2093,16 @@ static bool logfile_init(
|
|||||||
form_full_file_name(strparts,
|
form_full_file_name(strparts,
|
||||||
logfile->lf_name_seqno,
|
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
|
* At least one of the files couldn't be created. Increase
|
||||||
|
@ -143,6 +143,12 @@ typedef enum skygw_chk_t {
|
|||||||
((i) == LOGFILE_DEBUG ? "LOGFILE_DEBUG" : \
|
((i) == LOGFILE_DEBUG ? "LOGFILE_DEBUG" : \
|
||||||
"Unknown logfile type"))))
|
"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" : \
|
#define STRPACKETTYPE(p) ((p) == MYSQL_COM_INIT_DB ? "COM_INIT_DB" : \
|
||||||
((p) == MYSQL_COM_CREATE_DB ? "COM_CREATE_DB" : \
|
((p) == MYSQL_COM_CREATE_DB ? "COM_CREATE_DB" : \
|
||||||
((p) == MYSQL_COM_DROP_DB ? "COM_DROP_DB" : \
|
((p) == MYSQL_COM_DROP_DB ? "COM_DROP_DB" : \
|
||||||
|
Reference in New Issue
Block a user