3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 19:24:13 +01:00

PyLinkNCWUtils: stop logging the entirety of prefixmodes

This creates a lot of spam on larger channels.
This commit is contained in:
James Lu 2018-10-10 22:38:36 -07:00
parent 60b7894cd6
commit 12d1412cba

View File

@ -911,14 +911,11 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore):
# for ops).
for pmode, pmodelist in prefixmodes.items():
if pmode in supported_modes and real_mode[0] == supported_modes[pmode]:
log.debug('(%s) Initial prefixmodes list (%s): %s', self.name, pmode, pmodelist)
if mode[0][0] == '+':
pmodelist.add(mode[1])
else:
pmodelist.discard(mode[1])
log.debug('(%s) Final prefixmodes list (%s): %s', self.name, pmode, pmodelist)
if real_mode[0] in self.prefixmodes:
# Don't add prefix modes to Channel.modes; they belong in the
# prefixmodes mapping handled above.