[ic] logDebug not working

Jonathan Clark interchange-users@icdevgroup.org
Thu Mar 13 17:09:00 2003


> > > I've got a weird problem.  I have logging turned on and even have
> > > DataTrace set to 1 both in the catalog interchange.cfg and main
> > > interchange.cfg files, but in the iTransact.pm file I
> uncomment line 321
> > >
> > >  ::logDebug("sending query: " . ::uneval(\%values));
> > >
> > > I've tried these variations of this line:
> > >
> > >  ::logError("sending query: " . ::uneval(\%values));
> > >  ::log("sending query: " . ::uneval(\%values));
> > >
> > > And nothing is printing in the /tmp/icdebug or either of the error.log
> > > files.
> > >
> > > Yes, I am having successful transactions and I'm pretty sure there's
> > > nothing stopping it from reaching this line of code.
> > >
> > > I'm just trying to dump some variables to see exactly what
> it's sending
> > > to iTransact.
> > >
> > > I seem to get all of the other errors/output from DBI and IC in the
> > > error.log files and the /tmp/icdebug, just nothing from the logDebug
> > > statements.
> > >
> > > Yes, I've restarted/killed & started IC several times so that the
> > > iTransact module is reloaded.
> > >
> > > Any one have any ideas?
> > >
> > > Thanks,
> > > Kevin
> >
> > Is Variable  DEBUG  1 uncommented in interchange.cfg
>
> There is one thing that is weird....I have the line:
>
> Variable  DEBUG  1
>
> uncommented in every interchange.cfg file on my server, but when I do a
> configdump for the catalog I'm working on....and grep for DEBUG, nothing
> is returned.  Is there a chance that IC isn't reading certain variables
> in my config files??

Possibly. This can sometimes happen if you have some incorrect line endings
due to editing /uploading from Windows without using ASCII mode. If that is
the case, pulling it down and then uploading again, making sure you use
ASCII mode may fix it.

Jonathan
www.webmaint.net