/[LeafOK_CVS]/innwebd/controld.cpp
ViewVC logotype

Diff of /innwebd/controld.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 by sysadm, Thu Sep 16 15:38:59 2004 UTC Revision 1.14 by sysadm, Fri Apr 11 17:14:49 2008 UTC
# Line 1  Line 1 
1  /*******************************************************/  /*******************************************************/
2  /*                                                     */  /*                                                     */
3  /*  LeafOK Innbbsd                                     */  /*  LeafOK Innbbsd                                     */
 /*  Copyright (C) LeafOK.com, 2003-2004                */  
4  /*                                                     */  /*                                                     */
5  /*  Programmed by Leaf                                 */  /*  Copyright (C) LeafOK.com, 2003-2008                */
 /*  E-mail:leaflet@leafok.com  QQ:6049044              */  
6  /*                                                     */  /*                                                     */
7  /*  http://bbs.leafok.com                              */  /*  http://www.leafok.com                              */
 /*  http://bbs.leafok.net                              */  
 /*  http://bbs.fenglin.info                            */  
8  /*                                                     */  /*                                                     */
9  /*******************************************************/  /*******************************************************/
10    
# Line 89  int controld::Accept(void) Line 85  int controld::Accept(void)
85                                                  }                                                  }
86    
87                                                  this->s_send(result == 0 ? "OK" : "Failed");                                                  this->s_send(result == 0 ? "OK" : "Failed");
88    
89                                                    syslog << logfile::log_head << "Begin " << cmd << " ... " << (result == 0 ? "OK" : "Failed") << endl;
90                                          }                                          }
91                                          else                                          else
92                                          {                                          {
# Line 131  int controld::Accept(void) Line 129  int controld::Accept(void)
129                                                  }                                                  }
130    
131                                                  this->s_send(result == 0 ? "OK" : "Failed");                                                  this->s_send(result == 0 ? "OK" : "Failed");
132    
133                                                    syslog << logfile::log_head << "End " << cmd << " ... " << (result == 0 ? "OK" : "Failed") << endl;
134                                          }                                          }
135                                          else                                          else
136                                          {                                          {
# Line 231  int controld::Accept(void) Line 231  int controld::Accept(void)
231          }          }
232          catch(CException* e)          catch(CException* e)
233          {          {
234                  syslog << logfile::log_head << "Error in accept()" << endl;                  char strErrMsg[1024];
235                    e->GetErrorMessage(strErrMsg,1024);
236                    syslog << logfile::log_head << "Error in accept() [" << strErrMsg << "]" << endl;
237                  e->Delete();                  e->Delete();
238                  return -1;                  return -1;
239          }          }
# Line 372  int controld::load_conf(const char* conf Line 374  int controld::load_conf(const char* conf
374          }          }
375          catch(CException* e)          catch(CException* e)
376          {          {
377                  syslog << logfile::log_head << "Load configuration failed" << endl;                  char strErrMsg[1024];
378                    e->GetErrorMessage(strErrMsg,1024);
379                    syslog << logfile::log_head << "Load configuration failed [" << strErrMsg << "]" << endl;
380                  e->Delete();                  e->Delete();
381                  return -1;                  return -1;
382          }          }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1