debug file update
This commit is contained in:
@@ -77,7 +77,7 @@ void dwr(int level, const char *fmt, ... )
|
||||
#endif
|
||||
if(DEBUG_TO_FILE) {
|
||||
FILE *file = fopen(DEBUG_LOGFILE_PATH,"a");
|
||||
fprintf(file, "%s [tid=%7d] ", timestring, tid);
|
||||
vfprintf(file, fmt, ap);
|
||||
}
|
||||
fprintf(stderr, "%s [tid=%7d] ", timestring, tid);
|
||||
vfprintf(stderr, fmt, ap);
|
||||
|
||||
@@ -470,7 +470,7 @@ const char *get_netpath() {
|
||||
|
||||
int zt_accept(ACCEPT_SIG)
|
||||
{
|
||||
dwr(MSG_DEBUG,"zt_accept(%d):\n", sockfd);
|
||||
//dwr(MSG_DEBUG,"zt_accept(%d):\n", sockfd);
|
||||
if(addr)
|
||||
addr->sa_family = AF_INET;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user