Mercurial > hg > orthanc
diff OrthancServer/Internals/MoveScp.cpp @ 102:7593b57dc1bf
switch to google log
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 Oct 2012 16:28:13 +0200 |
parents | 428784e59dcd |
children | e759f777cb72 |
line wrap: on
line diff
--- a/OrthancServer/Internals/MoveScp.cpp Wed Oct 03 11:44:46 2012 +0200 +++ b/OrthancServer/Internals/MoveScp.cpp Wed Oct 03 16:28:13 2012 +0200 @@ -25,13 +25,13 @@ #include "../FromDcmtkBridge.h" #include "../ToDcmtkBridge.h" #include "../../Core/OrthancException.h" -#include "DcmtkLogging.h" #include <dcmtk/dcmdata/dcfilefo.h> #include <dcmtk/dcmdata/dcmetinf.h> #include <dcmtk/dcmdata/dcostrmb.h> #include <dcmtk/dcmdata/dcdeftag.h> #include <dcmtk/dcmnet/diutil.h> +#include <glog/logging.h> namespace Orthanc @@ -82,7 +82,7 @@ catch (OrthancException& e) { // Internal error! - LOG4CPP_ERROR(Internals::GetLogger(), "IMoveRequestHandler Failed: " + std::string(e.What())); + LOG(ERROR) << "IMoveRequestHandler Failed: " << e.What(); response->DimseStatus = STATUS_MOVE_Failed_UnableToProcess; return; } @@ -111,7 +111,7 @@ catch (OrthancException& e) { // Internal error! - LOG4CPP_ERROR(Internals::GetLogger(), "IMoveRequestHandler Failed: " + std::string(e.What())); + LOG(ERROR) << "IMoveRequestHandler Failed: " << e.What(); response->DimseStatus = STATUS_MOVE_Failed_UnableToProcess; return; } @@ -162,7 +162,7 @@ if (cond.bad()) { OFString temp_str; - LOG4CPP_ERROR(Internals::GetLogger(), "Move SCP Failed: " + std::string(cond.text())); + LOG(ERROR) << "Move SCP Failed: " << cond.text(); } return cond;