]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/squidguard/03_squidguard-1.5-beta_remove-debug-logging.patch
ba2840baca473caf31d747edde909d77c61fe38e
[ipfire-2.x.git] / src / patches / squidguard / 03_squidguard-1.5-beta_remove-debug-logging.patch
1 --- a/src/sg.y.in 2014-04-14 16:23:39.183396677 +0200
2 +++ b/src/sg.y.in 2014-04-14 16:24:19.000000000 +0200
3 @@ -795,9 +795,9 @@
4 {
5 struct Source *sp;
6 sp = lastSource;
7 -
8 +/* DEBUG
9 @NOLOG1@ sgLogError("DEBUG: sgSourceLdapIpSearch called with: %s", url); @NOLOG2@
10 -
11 +*/
12 if(!ldap_is_ldap_url(url)) {
13 sgLogError("%s: can't parse LDAP url %s",progname, url);
14 return;
15 @@ -1311,10 +1311,12 @@
16 }
17 sp->domainlistDb = (struct sgDb *) sgCalloc(1,sizeof(struct sgDb));
18 sp->domainlistDb->type=SGDBTYPE_DOMAINLIST;
19 +/* DEBUG
20 sgLogError("init domainlist %s",sp->domainlist);
21 +*/
22 sgDbInit(sp->domainlistDb,sp->domainlist);
23 if(sp->domainlistDb->entries == 0) { /* empty database */
24 - sgLogError("domainlist empty, removed from memory");
25 + sgLogError("domainlist %s empty, removed from memory",sp->domainlist);
26 sgFree(sp->domainlistDb);
27 sp->domainlistDb = NULL;
28 }
29 @@ -1356,10 +1356,12 @@
30 }
31 sp->urllistDb = (struct sgDb *) sgCalloc(1,sizeof(struct sgDb));
32 sp->urllistDb->type=SGDBTYPE_URLLIST;
33 +/* DEBUG
34 sgLogError("init urllist %s",sp->urllist);
35 +*/
36 sgDbInit(sp->urllistDb,sp->urllist);
37 if(sp->urllistDb->entries == 0) { /* empty database */
38 - sgLogError("urllist empty, removed from memory");
39 + sgLogError("urllist empty %s, removed from memory",sp->urllist);
40 sgFree(sp->urllistDb);
41 sp->urllistDb = NULL;
42 }
43 @@ -2773,9 +2773,9 @@
44 char *interval;
45 struct UserInfo *userinfo;
46 static struct UserInfo info;
47 -
48 +/* DEBUG
49 @NOLOG1@ sgLogError("DEBUG: sgFindUser called with: %s", ident); @NOLOG2@
50 -
51 +*/
52 /* defined in the userDB? */
53 if(defined(src->userDb, ident, (char **) &userinfo) == 1) {
54 #ifdef HAVE_LIBLDAP
55 --- a/src/sgDb.c 2014-04-17 08:53:29.961367395 +0200
56 +++ b/src/sgDb.c 2014-04-17 08:53:58.000000000 +0200
57 @@ -48,7 +48,9 @@
58 strcat(dbfile,".db");
59 if(stat(dbfile,&st) == 0){
60 if(!createdb){
61 +/* DEBUG
62 sgLogNotice("INFO: loading dbfile %s",dbfile);
63 +*/
64 }
65 } else {
66 if(!createdb){