/[imapfilter]/imapfilter/log.c
ViewVC logotype

Diff of /imapfilter/log.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40 by lefcha, Mon Feb 9 17:34:56 2004 UTC revision 1.41 by lefcha, Mon Feb 9 19:56:42 2004 UTC
# Line 17  Line 17 
17  extern conn_t connpri, connaux;  extern conn_t connpri, connaux;
18  extern char logfile[PATH_MAX];  extern char logfile[PATH_MAX];
19  extern unsigned int options;  extern unsigned int options;
20    extern int verbosity;
21  extern unsigned int flags;  extern unsigned int flags;
22    
23  static FILE *debugfp = NULL;    /* Pointer to debug file. */  static FILE *debugfp = NULL;    /* Pointer to debug file. */
# Line 28  char *get_time(void); Line 29  char *get_time(void);
29    
30    
31  /*  /*
32   * Print message if not in OPTION_DETAILS_QUIET mode.   * Print message if not in the lowest verbosity level.
33   */   */
34  void  void
35  info(const char *info,...)  info(const char *info,...)
36  {  {
37          va_list args;          va_list args;
38    
39          if (options & OPTION_DETAILS_QUIET)          if (verbosity == -2)
40                  return;                  return;
41    
42          va_start(args, info);          va_start(args, info);
# Line 45  info(const char *info,...) Line 46  info(const char *info,...)
46    
47    
48  /*  /*
49   * Print message if in OPTION_DETAILS_VERBOSE mode.   * Print message if in the highest verbosity level.
50   */   */
51  void  void
52  verbose(const char *info,...)  verbose(const char *info,...)
53  {  {
54          va_list args;          va_list args;
55    
56          if (options & OPTION_DETAILS_VERBOSE) {          if (verbosity == 2) {
57                  va_start(args, info);                  va_start(args, info);
58                  vprintf(info, args);                  vprintf(info, args);
59                  va_end(args);                  va_end(args);

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26