comparison src/gtk/misc-gtk.c @ 354:2ea37b3c0158

2003-1-5 Brian Masney <masneyb@gftp.org> * lib/gftp.h src/gtk/misc-gtk.c src/text/gftp-text.c - added logging level type gftp_logging_misc_nolog. If a message is logged with this level, it will be displayed to the screen but, it will not be logged to disk. * src/uicommon/gftpui.c - log the directory listings with the log level gftp_logging_misc_nolog * src/gtk/gtkui.c (gftpui_generic_thread) - fixed segfault. Pass cdata structure instead of wdata.
author masneyb
date Mon, 05 Jan 2004 23:38:22 +0000
parents eedc2c5727fa
children 3bb0cb1b8389
comparison
equal deleted inserted replaced
353:91d91f574438 354:2ea37b3c0158
94 gftp_file_transfer_logs = g_list_append (gftp_file_transfer_logs, newlog); 94 gftp_file_transfer_logs = g_list_append (gftp_file_transfer_logs, newlog);
95 pthread_mutex_unlock (&log_mutex); 95 pthread_mutex_unlock (&log_mutex);
96 return; 96 return;
97 } 97 }
98 98
99 if (gftp_logfd != NULL) 99 if (gftp_logfd != NULL && level != gftp_logging_misc_nolog)
100 { 100 {
101 if (fwrite (logstr, strlen (logstr), 1, gftp_logfd) != 1) 101 if (fwrite (logstr, strlen (logstr), 1, gftp_logfd) != 1)
102 { 102 {
103 fclose (gftp_logfd); 103 fclose (gftp_logfd);
104 gftp_logfd = NULL; 104 gftp_logfd = NULL;