Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 108:a6e41de88a53
using glog
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Oct 2012 11:37:56 +0200 |
parents | 7593b57dc1bf |
children | 80ca409f232f |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Thu Oct 04 11:22:20 2012 +0200 +++ b/OrthancServer/main.cpp Thu Oct 04 11:37:56 2012 +0200 @@ -152,18 +152,18 @@ httpServer.Start(); dicomServer.Start(); - printf("The server has started\n"); + LOG(INFO) << "The server has started"; Toolbox::ServerBarrier(); // Stop - printf("Finishing\n"); + LOG(INFO) << "The server is stopping"; } storeScp.Done(); } catch (OrthancException& e) { - std::cout << "EXCEPT [" << e.What() << "]" << std::endl; + LOG(ERROR) << "EXCEPTION [" << e.What() << "]"; } OrthancFinalize();