make connects and disconnects log in the log file
This commit is contained in:
parent
8d6c863da5
commit
eb2e229b27
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ public class LoggerPlugin extends ChatPlugin.Listener {
|
|||
bot.addListener(new Bot.Listener() {
|
||||
@Override
|
||||
public void connecting() {
|
||||
info(
|
||||
log(
|
||||
String.format(
|
||||
"Connecting to: %s:%s",
|
||||
bot.host(),
|
||||
|
@ -35,7 +35,7 @@ public class LoggerPlugin extends ChatPlugin.Listener {
|
|||
|
||||
@Override
|
||||
public void connected (ConnectedEvent event) {
|
||||
info(
|
||||
log(
|
||||
String.format(
|
||||
"Successfully connected to: %s:%s",
|
||||
bot.host(),
|
||||
|
@ -51,7 +51,7 @@ public class LoggerPlugin extends ChatPlugin.Listener {
|
|||
@Override
|
||||
public void disconnected (DisconnectedEvent event) {
|
||||
final String reason = ComponentUtilities.stringifyAnsi(event.getReason());
|
||||
info("Disconnected from " + bot.host() + ":" + bot.port() + ", reason: " + reason);
|
||||
log("Disconnected from " + bot.host() + ":" + bot.port() + ", reason: " + reason);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue