mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
set logfunc after configuration reload
This commit is contained in:
parent
e8203ac3a5
commit
461fae12e7
@ -308,8 +308,8 @@ static int h_log(int argc, unsigned char ** argv){
|
|||||||
}
|
}
|
||||||
#ifndef NOODBC
|
#ifndef NOODBC
|
||||||
else if(*argv[1]=='&'){
|
else if(*argv[1]=='&'){
|
||||||
if(notchanged) return 0;
|
|
||||||
conf.logfunc = logsql;
|
conf.logfunc = logsql;
|
||||||
|
if(notchanged) return 0;
|
||||||
pthread_mutex_lock(&log_mutex);
|
pthread_mutex_lock(&log_mutex);
|
||||||
close_sql();
|
close_sql();
|
||||||
init_sql((char *)argv[1]+1);
|
init_sql((char *)argv[1]+1);
|
||||||
|
Loading…
Reference in New Issue
Block a user