improve --verbose readability
This commit is contained in:
parent
910fd0a8cb
commit
a2d79a224c
@ -227,12 +227,11 @@ class IRCClient(object):
|
|||||||
enc = "latin1"
|
enc = "latin1"
|
||||||
fargs = [arg.decode(enc) for arg in args if isinstance(arg,bytes)]
|
fargs = [arg.decode(enc) for arg in args if isinstance(arg,bytes)]
|
||||||
|
|
||||||
self.stream_handler("processCommand ({2}){0}({1})".format(command,
|
|
||||||
fargs, prefix), level="debug")
|
|
||||||
try:
|
try:
|
||||||
largs = list(args)
|
largs = list(args)
|
||||||
if prefix is not None:
|
if prefix is not None:
|
||||||
prefix = prefix.decode(enc)
|
prefix = prefix.decode(enc)
|
||||||
|
self.stream_handler("<--- receive {0} {1} ({2})".format(prefix, command, ", ".join(fargs)), level="debug")
|
||||||
# for i,arg in enumerate(largs):
|
# for i,arg in enumerate(largs):
|
||||||
# if arg is not None: largs[i] = arg.decode(enc)
|
# if arg is not None: largs[i] = arg.decode(enc)
|
||||||
if command in self.command_handler:
|
if command in self.command_handler:
|
||||||
|
Loading…
Reference in New Issue
Block a user