diff OrthancServer/main.cpp @ 125:2d96cb181f45

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Oct 2012 17:44:12 +0200
parents 80ca409f232f
children 2a24f43d9dca
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Fri Oct 05 15:23:20 2012 +0200
+++ b/OrthancServer/main.cpp	Fri Oct 05 17:44:12 2012 +0200
@@ -141,7 +141,7 @@
       DicomServer dicomServer;
       dicomServer.SetCalledApplicationEntityTitleCheck(GetGlobalBoolParameter("DicomCheckCalledAet", false));
       dicomServer.SetStoreRequestHandlerFactory(storeScp);
-      dicomServer.SetPortNumber(GetGlobalIntegerParameter("DicomPort", 4242));
+      dicomServer.SetPort(GetGlobalIntegerParameter("DicomPort", 4242));
       dicomServer.SetApplicationEntityTitle(GetGlobalStringParameter("DicomAet", "ORTHANC"));
 
       // HTTP server
@@ -163,6 +163,9 @@
         httpServer.SetSslEnabled(false);
       }
 
+      LOG(INFO) << "DICOM server listening on port: " << dicomServer.GetPort();
+      LOG(INFO) << "HTTP server listening on port: " << httpServer.GetPort();
+
 #if ORTHANC_STANDALONE == 1
       httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::ORTHANC_EXPLORER));
 #else