projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7272693
)
Activity animation in Win32 GUI now works even if debug==0
author
jongfoster
<jongfoster@users.sourceforge.net>
Sat, 26 May 2001 15:21:28 +0000
(15:21 +0000)
committer
jongfoster
<jongfoster@users.sourceforge.net>
Sat, 26 May 2001 15:21:28 +0000
(15:21 +0000)
errlog.c
patch
|
blob
|
history
diff --git
a/errlog.c
b/errlog.c
index
4ef0e97
..
7861253
100644
(file)
--- a/
errlog.c
+++ b/
errlog.c
@@
-1,4
+1,4
@@
-const char errlog_rcs[] = "$Id: errlog.c,v 1.
5 2001/05/22 18:46:04 oes
Exp $";
+const char errlog_rcs[] = "$Id: errlog.c,v 1.
6 2001/05/25 21:55:08 jongfoster
Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/errlog.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/errlog.c,v $
@@
-33,6
+33,9
@@
const char errlog_rcs[] = "$Id: errlog.c,v 1.5 2001/05/22 18:46:04 oes Exp $";
*
* Revisions :
* $Log: errlog.c,v $
*
* Revisions :
* $Log: errlog.c,v $
+ * Revision 1.6 2001/05/25 21:55:08 jongfoster
+ * Now cleans up properly on FATAL (removes taskbar icon etc)
+ *
* Revision 1.5 2001/05/22 18:46:04 oes
*
* - Enabled filtering banners by size rather than URL
* Revision 1.5 2001/05/22 18:46:04 oes
*
* - Enabled filtering banners by size rather than URL
@@
-251,7
+254,19
@@
void log_error(int loglevel, char *fmt, ...)
char * src = fmt;
int outc = 0;
long this_thread = 1; /* was: pthread_t this_thread;*/
char * src = fmt;
int outc = 0;
long this_thread = 1; /* was: pthread_t this_thread;*/
-
+
\r
+#if defined(_WIN32) && !defined(_WIN_CONSOLE)
\r
+ /*
\r
+ * Irrespective of debug setting, a GET/POST/CONNECT makes
\r
+ * the taskbar icon animate. (There is an option to disable
\r
+ * this but checking that is handled inside LogShowActivity()).
\r
+ */
\r
+ if (loglevel == LOG_LEVEL_GPC)
\r
+ {
\r
+ LogShowActivity();
\r
+ }
+#endif /* defined(_WIN32) && !defined(_WIN_CONSOLE) */
\r
+
\r
/* verify if loglevel applies to current settings and bail out if negative */
if(!(loglevel & debug))
{
/* verify if loglevel applies to current settings and bail out if negative */
if(!(loglevel & debug))
{
@@
-508,7
+523,6
@@
void log_error(int loglevel, char *fmt, ...)
#if defined(_WIN32) && !defined(_WIN_CONSOLE)
/* Write to display */
LogPutString(outbuf);
#if defined(_WIN32) && !defined(_WIN_CONSOLE)
/* Write to display */
LogPutString(outbuf);
- LogShowActivity();
#endif /* defined(_WIN32) && !defined(_WIN_CONSOLE) */
}
#endif /* defined(_WIN32) && !defined(_WIN_CONSOLE) */
}