adapter works, but I cannot see debug output
I have a working adapter, but I cannot see debug information in squid's cache.log file.
Using the clamav Debugger class as my example, I have added the code below which both writes to a file in /tmp and tries to write to the debug stream. I used the /tmp file to make sure my code was getting called.
As you'll see, I tried opening the debug stream with verbosity = ilNormal|
I did set "debug_options ALL,9" in my squid.conf file and that definitely creates a tremendous amount of information in cache.log, but never have I seen my debug information such as "***TEST*** Adapter:
I am getting a valid debug pointer, which I know because I see the value of the debug pointer written to my /tmp file.
Any suggestions? Thanks in advance.
void Adapter:
std::ofstream tmpFile(
tmpFile << "Adapter:
// std::ostream *debug = libecap:
std::ostream *debug = libecap:
if (debug)
{
tmpFile << "Adapter:
*debug << "***TEST*** Adapter:
libecap:
}
tmpFile.close();
}
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- eCAP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tom
- Solved:
- Last query:
- Last reply: