Commit 5f89e5c5 authored by Thomas Braun's avatar Thomas Braun
Browse files

TangoAccessControl/main.cpp: Prefer TANGO_LOG_INFO over cout

parent d0cb9af7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -66,20 +66,20 @@ int main(int argc,char *argv[])

		// Run the endless loop
		//----------------------------------------
		cout << "Ready to accept request" << std::endl;
		TANGO_LOG_INFO << "Ready to accept request" << std::endl;
		tg->server_run();
	}
	catch (std::bad_alloc)
	{
		cout << "Can't allocate memory to store device object !!!" << std::endl;
		cout << "Exiting" << std::endl;
		TANGO_LOG_INFO << "Can't allocate memory to store device object !!!" << std::endl;
		TANGO_LOG_INFO << "Exiting" << std::endl;
	}
	catch (CORBA::Exception &e)
	{
		Tango::Except::print_exception(e);
		
		cout << "Received a CORBA_Exception" << std::endl;
		cout << "Exiting" << std::endl;
		TANGO_LOG_INFO << "Received a CORBA_Exception" << std::endl;
		TANGO_LOG_INFO << "Exiting" << std::endl;
	}
	tg->server_cleanup();
	return(0);