Use SG_LOG instead of printf
This commit is contained in:
parent
c9401da22d
commit
240feb6961
2 changed files with 2 additions and 2 deletions
|
@ -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 ) ;
|
||||
|
|
|
@ -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 ) ;
|
||||
|
|
Loading…
Reference in a new issue