Added a logging message.

This commit is contained in:
Jeremy Fincher 2004-10-12 11:40:56 +00:00
parent 4eafd9b779
commit 25224a79a1

View File

@ -726,6 +726,7 @@ class Irc(IrcCommandDispatcher):
if len(str(msg)) > 512:
# Yes, this violates the contract, but at this point it doesn't
# matter. That's why we gotta go munging in private attributes
log.warning('Truncating %r, message is too long.', msg)
msg._str = msg._str[:500] + '\r\n'
msg._len = len(str(msg))
# I don't think we should do this. Why should it matter? If it's