--- innwebd/base_passive.cpp 2005/02/26 16:10:25 1.9 +++ innwebd/base_passive.cpp 2008/04/11 17:14:49 1.10 @@ -1,14 +1,10 @@ /*******************************************************/ /* */ /* LeafOK Innbbsd */ -/* Copyright (C) LeafOK.com, 2003-2005 */ /* */ -/* Programmed by Leaf */ -/* E-mail:leaflet@leafok.com QQ:6049044 */ +/* Copyright (C) LeafOK.com, 2003-2008 */ /* */ -/* http://bbs.leafok.com */ -/* http://bbs.leafok.net */ -/* http://bbs.fenglin.info */ +/* http://www.leafok.com */ /* */ /*******************************************************/ @@ -237,7 +233,9 @@ DWORD base_passive::AcceptThread(LPVOID } catch(CException* e) { - syslog << logfile::log_head << "Error in AcceptThread()" << endl; + char strErrMsg[1024]; + e->GetErrorMessage(strErrMsg,1024); + syslog << logfile::log_head << "Error in AcceptThread() [" << strErrMsg << "]" << endl; e->Delete(); return -1; } @@ -268,7 +266,9 @@ int base_passive::get_priv(base_passive* } catch(CException* e) { - syslog << logfile::log_head << "Error in get_priv()" << endl; + char strErrMsg[1024]; + e->GetErrorMessage(strErrMsg,1024); + syslog << logfile::log_head << "Error in get_priv() [" << strErrMsg << "]" << endl; e->Delete(); return -1; } @@ -320,7 +320,9 @@ int base_passive::load_priv(void) } catch(CException* e) { - syslog << logfile::log_head << "Error in load_priv()" << endl; + char strErrMsg[1024]; + e->GetErrorMessage(strErrMsg,1024); + syslog << logfile::log_head << "Error in load_priv() [" << strErrMsg << "]" << endl; e->Delete(); return -1; } @@ -343,7 +345,9 @@ int base_passive::unload_priv(void) } catch(CException* e) { - syslog << logfile::log_head << "Error in unload_priv()" << endl; + char strErrMsg[1024]; + e->GetErrorMessage(strErrMsg,1024); + syslog << logfile::log_head << "Error in unload_priv() [" << strErrMsg << "]" << endl; e->Delete(); return -1; }