Fixed logging messages.
This commit is contained in:
parent
fa2eb27a1a
commit
3a6d2d1071
2 changed files with 3 additions and 3 deletions
|
@ -342,7 +342,7 @@ public class Mobibot extends PircBot {
|
|||
if (retries == MAX_RECONNECT) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug(
|
||||
"Unable to reconnect to " + ircServer + " after " + MAX_RECONNECT + " retries.", ex);
|
||||
"Unable to reconnect to {} after {} retries.", ircServer, MAX_RECONNECT, ex);
|
||||
}
|
||||
|
||||
e.printStackTrace(System.err);
|
||||
|
@ -1522,7 +1522,7 @@ public class Mobibot extends PircBot {
|
|||
twitterModule.post(twitterHandle, getName() + ' ' + ReleaseInfo.VERSION + " " + msg, true);
|
||||
} catch (ModuleException e) {
|
||||
if (logger.isWarnEnabled()) {
|
||||
logger.warn("Failed to notify @" + twitterHandle + ": " + msg, e);
|
||||
logger.warn("Failed to notify @{}: {}", twitterHandle, msg, e);
|
||||
}
|
||||
}
|
||||
}).start();
|
||||
|
|
|
@ -177,7 +177,7 @@ public final class Lookup extends AbstractModule {
|
|||
}
|
||||
} catch (IOException ioe) {
|
||||
if (bot.getLogger().isDebugEnabled()) {
|
||||
bot.getLogger().debug("Unable to perform whois IP lookup: " + args, ioe);
|
||||
bot.getLogger().debug("Unable to perform whois IP lookup: {}", args, ioe);
|
||||
}
|
||||
|
||||
bot.send("Unable to perform whois IP lookup: " + ioe.getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue