Reduces the log level of logs when freeing an agent and its streams.

This commit is contained in:
boris 2015-03-09 18:24:33 +00:00
parent 7268fb7a75
commit 818cd10a2f

View File

@ -2112,13 +2112,13 @@ public class Agent
/** /**
* Prepares this <tt>Agent</tt> for garbage collection by ending all related * Prepares this <tt>Agent</tt> for garbage collection by ending all related
* processes and freeing its <tt>IceMediaStream</tt>s, <tt>Component</tt>s * processes and freeing its <tt>IceMediaStream</tt>s, <tt>Component</tt>s
* and <tt>Candidate</tt>s. This method will also place the agent in the * and <tt>Candidate</tt>s. This method will also place the agent in the
* terminated state in case it wasn't already there. * terminated state in case it wasn't already there.
*/ */
public void free() public void free()
{ {
logger.info("Free ICE agent"); logger.fine("Free ICE agent");
shutdown = true; shutdown = true;
@ -2144,18 +2144,18 @@ public class Agent
// Free its IceMediaStreams, Components and Candidates. // Free its IceMediaStreams, Components and Candidates.
boolean interrupted = false; boolean interrupted = false;
logger.info("remove streams"); logger.fine("remove streams");
for (IceMediaStream stream : getStreams()) for (IceMediaStream stream : getStreams())
{ {
try try
{ {
removeStream(stream); removeStream(stream);
logger.info("remove stream " + stream.getName()); logger.fine("remove stream " + stream.getName());
} }
catch (Throwable t) catch (Throwable t)
{ {
logger.info( logger.fine(
"remove stream " + stream.getName() + " failed: " + t); "remove stream " + stream.getName() + " failed: " + t);
if (t instanceof InterruptedException) if (t instanceof InterruptedException)
interrupted = true; interrupted = true;
else if (t instanceof ThreadDeath) else if (t instanceof ThreadDeath)
@ -2167,7 +2167,7 @@ public class Agent
getStunStack().shutDown(); getStunStack().shutDown();
logger.info("ICE agent freed"); logger.fine("ICE agent freed");
} }
/** /**