debug file update

This commit is contained in:
Joseph Henry
2016-06-20 13:41:32 -07:00
parent 9dd8a223c9
commit a2a939f6f6
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;