From: Jean-Marc Pigeon Date: Sun, 16 Nov 2025 20:14:33 +0000 (-0500) Subject: Using rou_dbglive to debug X-Git-Tag: tag-0.18~38 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=2273bc56e6043be6a9cd4fdd2819030d169875cb;p=jmp%2Fmailleur Using rou_dbglive to debug --- diff --git a/lib/lvleml.c b/lib/lvleml.c index 328eff5..1aaa8e2 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -1813,7 +1813,7 @@ report=(char *)0; proceed=true; phase=0; while (proceed==true) { - (void) rou_alert(0,"JMPDBG %s phase='%d' rcptto=<%s>",OPEP,phase,rcptto); + (void) rou_dbglive(9,OPEP,"phase='%d' rcptto=<%s>",phase,rcptto); switch (phase) { case 0 : //do we have a mailfrom if ((contact->mailfrom==(char *)0)||(strlen(contact->mailfrom)==0)) { diff --git a/lib/modrec.c b/lib/modrec.c index d3d93e1..e0189ab 100644 --- a/lib/modrec.c +++ b/lib/modrec.c @@ -175,7 +175,7 @@ intstat=0; phase=0; proceed=true; while (proceed==true) { - (void) rou_dbglive(8,OPEP,"phase='%d'",phase); + (void) rou_dbglive(9,OPEP,"phase='%d'",phase); switch (phase) { case 0 : //waiting contact if ((contact=eml_getcontact(socptr,pos))==(CONTYP *)0) diff --git a/lib/subrou.c b/lib/subrou.c index 69c0a7a..675e73e 100644 --- a/lib/subrou.c +++ b/lib/subrou.c @@ -638,8 +638,6 @@ if (debug>=dlevel) { PUBLIC void rou_dbglive(const int dlevel,const char *prcref,const char *fmt,...) { -#define DBG "DBGLIVE" - if ((debug>=dlevel)&&(dbglive!=(char *)0)) { if (strstr(dbglive,prcref)!=(char *)0) { char *nstr; @@ -647,7 +645,6 @@ if ((debug>=dlevel)&&(dbglive!=(char *)0)) { va_start(args,fmt); (void) rou_asprintf(&nstr,"%s: %s",prcref,fmt); - (void) rou_alert(0,"Bigre dbglive=<%s> nstr=<%s>",dbglive,nstr); (void) rou_valert(dlevel,nstr,args); va_end(args); (void) free(nstr);