1
0
Fork 0

Use SG_LOG instead of printf

This commit is contained in:
fredb 2006-12-17 18:40:17 +00:00
parent c9401da22d
commit 240feb6961
2 changed files with 2 additions and 2 deletions

View 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 ) ;

View 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 ) ;