]> git.mxchange.org Git - flightgear.git/commitdiff
Use SG_LOG instead of printf
authorfredb <fredb>
Sun, 17 Dec 2006 18:40:17 +0000 (18:40 +0000)
committerfredb <fredb>
Sun, 17 Dec 2006 18:40:17 +0000 (18:40 +0000)
src/Network/httpd.hxx
src/Network/jpg-httpd.hxx

index 57979aadaf887c89398bd6bbdd7a9d8198ad7742..487ddd3f231a9ae16667fc342ffc4d206797c341 100644 (file)
@@ -68,7 +68,7 @@ class HttpdServer : private netChannel
     virtual void handleAccept (void) {
         netAddress addr ;
         int handle = accept ( &addr ) ;
-        printf("Client %s:%d connected\n", addr.getHost(), addr.getPort());
+        SG_LOG( SG_IO, SG_INFO, "Client " << addr.getHost() << ":" << addr.getPort() << " connected" );
 
         HttpdChannel *hc = new HttpdChannel;
         hc->setHandle ( handle ) ;
index de6531305828fee339fabdcaf1edd62154976e6e..4e143a28fedc4f965daf925bd829c78c23c2b0ca 100644 (file)
@@ -95,7 +95,7 @@ class HttpdImageServer : private netChannel
     virtual void handleAccept (void) {
         netAddress addr ;
         int handle = accept ( &addr ) ;
-        printf("Client %s:%d connected\n", addr.getHost(), addr.getPort());
+        SG_LOG( SG_IO, SG_INFO, "Client " << addr.getHost() << ":" << addr.getPort() << " connected" );
 
         HttpdImageChannel *hc = new HttpdImageChannel;
         hc->setHandle ( handle ) ;