this.state = State.OpenWait;
scheduleFailTimer();
- LOG.debug("Channel {} started sent proposal {}", this.channel, this.localPrefs);
+ LOG.info("PCEP session with {} started, sent proposal {}", this.channel, this.localPrefs);
}
@Override
if (msg instanceof Keepalive) {
this.localOK = true;
if (this.remoteOK) {
- LOG.info("Channel {} completed negotiation", this.channel);
+ LOG.info("PCEP peer {} completed negotiation", this.channel);
negotiationSuccessful(createSession(this.timer, this.channel, this.localPrefs, this.remotePrefs));
this.state = State.Finished;
} else {
this.remoteOK = true;
if (this.localOK) {
negotiationSuccessful(createSession(this.timer, this.channel, this.localPrefs, this.remotePrefs));
+ LOG.info("PCEP peer {} completed negotiation", this.channel);
this.state = State.Finished;
} else {
scheduleFailTimer();
final ChannelFuture f = this.channel.writeAndFlush(msg);
this.lastMessageSentAt = System.nanoTime();
if (!(msg instanceof KeepaliveMessage)) {
- LOG.debug("Message enqueued: {}", msg);
+ LOG.debug("PCEP Message enqueued: {}", msg);
}
this.sentMsgCount++;
@Override
public void operationComplete(final ChannelFuture arg) {
if (arg.isSuccess()) {
- LOG.debug("Message sent to socket: {}", msg);
+ LOG.trace("Message sent to socket: {}", msg);
} else {
LOG.debug("Message not sent: {}", msg, arg.cause());
}
*/
@Override
public void close() {
- LOG.trace("Closing session: {}", this);
+ LOG.info("Closing PCEP session: {}", this);
this.channel.close();
}
*/
@Override
public synchronized void close(final TerminationReason reason) {
- LOG.debug("Closing session: {}", this);
+ LOG.info("Closing PCEP session: {}", this);
this.closed = true;
this.sendMessage(new CloseBuilder().setCCloseMessage(
new CCloseMessageBuilder().setCClose(new CCloseBuilder().setReason(reason.getShortValue()).build()).build()).build());
}
private synchronized void terminate(final TerminationReason reason) {
- LOG.info("Local session termination : {}", reason);
+ LOG.info("Local PCEP session termination : {}", reason);
this.listener.onSessionTerminated(this, new PCEPCloseTermination(reason));
this.closed = true;
this.sendMessage(new CloseBuilder().setCCloseMessage(
// Update last reception time
this.lastMessageReceivedAt = System.nanoTime();
this.receivedMsgCount++;
-
+ if (!(msg instanceof KeepaliveMessage)) {
+ LOG.debug("PCEP message {} received.", msg);
+ }
// Internal message handling. The user does not see these messages
if (msg instanceof KeepaliveMessage) {
// Do nothing, the timer has been already reset
- LOG.trace("Session {} received a keepalive", this);
} else if (msg instanceof OpenMessage) {
this.sendErrorMessage(PCEPErrors.ATTEMPT_2ND_SESSION);
} else if (msg instanceof CloseMessage) {