~ubuntu-branches/ubuntu/quantal/apt-cacher-ng/quantal-backports

« back to all changes in this revision

Viewing changes to include/debug.h

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2011-08-01 23:40:11 UTC
  • mfrom: (1.1.29 upstream) (29.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110801234011-2ouft5pay71773vs
Tags: 0.6.4-1
* New upstream version
  + fixes potential pipeline freeze (closes: #628995)
  + supports "soft" blacklisting of bad hosts when important files are
    missing (see keyfile in documentation, closes: #616091)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
#ifdef DEBUG
13
13
 
 
14
#if 1 // def LOCAL_DEBUG
 
15
 
14
16
#include <meta.h>
15
17
#include <assert.h>
16
18
#define ASSERT(x) { if(acfg::debug > SPAMLEVEL*2) assert(x); }
29
31
 
30
32
#define dbgline { ldbg("mark" /*__FILE__ << ": " << __LINE__*/); }
31
33
 
 
34
#else // LOCAL_DEBUG
 
35
 
 
36
#define ldbgvl(v, x)
 
37
#define dbglvl(v)
 
38
#define ldbg(x)
 
39
#define dbgline
 
40
#define ASSERT(x)
 
41
#define USRDBG(v, x)
 
42
#define LOG(x)
 
43
#define LOGSTART(x)
 
44
#define LOGSTART2(x,y)
 
45
 
 
46
#endif
 
47
 
 
48
 
32
49
#elif defined(NOLOGATALL)
33
50
 
34
51
#define ldbgvl(v, x)