Skip to content

Commit d344651

Browse files
committed
Use context logger instead of nxc_logger
1 parent 08fb634 commit d344651

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

nxc/modules/get-network.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from ldap3 import LEVEL
1212
from os.path import expanduser
1313
from nxc.helpers.misc import CATEGORY
14-
from nxc.logger import nxc_logger
1514
from nxc.paths import NXC_PATH
1615
from nxc.parsers.ldap_results import parse_result_attributes
1716

@@ -84,12 +83,12 @@ def options(self, context, module_options):
8483
if module_options["ALL"].lower() == "true" or module_options["ALL"] == "1":
8584
self.showall = True
8685
else:
87-
nxc_logger.display("Could not parse ALL option.")
86+
context.log.display("Could not parse ALL option.")
8887
if module_options and "ONLY_HOSTS" in module_options:
8988
if module_options["ONLY_HOSTS"].lower() == "true" or module_options["ONLY_HOSTS"] == "1":
9089
self.showhosts = True
9190
else:
92-
nxc_logger.display("Could not parse ONLY_HOSTS option.")
91+
context.log.display("Could not parse ONLY_HOSTS option.")
9392

9493
def on_login(self, context, connection):
9594
zone = ldap2domain(connection.baseDN)

0 commit comments

Comments
 (0)