version (SMFI_PROT_VERSION) to debug outptu. git-svn-id: https://svn.microneil.com/svn/SNFMilter/trunk@10 2c985dca-31e6-41a4-b4a2-d8f5b7f8e074master
@@ -4,7 +4,9 @@ | |||
* SNFMilter.hpp: Removed signal catching. | |||
* main.cpp (main): Removed signal catching. | |||
* main.cpp (main): Removed signal catching. Added SNFMilter | |||
version and libmilter protocol version (SMFI_PROT_VERSION) to | |||
debug output. | |||
2009-06-03 Alban Deniz <adeniz@skidmark.localdomain> | |||
@@ -75,7 +75,11 @@ int main(int argc, char* argv[]) { | |||
string::npos != argv0.find("debug") // "debug" in our command path | |||
) { // then we are in DebugMode. | |||
DebugMode = true; // Set the flag and tell the | |||
cout << "Debug Mode" << endl; // watchers. | |||
cout << SNF_MILTER_VERSION << endl; // watchers. | |||
#ifdef SMFI_PROT_VERSION | |||
cout << "SMFI_PROT_VERSION: " << SMFI_PROT_VERSION << endl; | |||
#endif | |||
cout << "Debug Mode" << endl; | |||
} | |||
try { // Catch anything that breaks loose. |