1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-20 08:59:06 +03:00

netcmd: Add Command.get_logger() method.

This commit is contained in:
Jelmer Vernooij
2011-10-12 23:21:52 +02:00
parent 63c9186e92
commit 6f9a3177d4
3 changed files with 8 additions and 5 deletions

View File

@ -36,7 +36,6 @@
import os
import sys
import logging
import samba
import samba.getopt as options
@ -93,8 +92,7 @@ class cmd_testparm(Command):
# We need this to force the output
samba.set_debug_level(2)
logger = logging.getLogger("testparm")
logger.addHandler(logging.StreamHandler(sys.stdout))
logger = self.get_logger("testparm")
logger.info("Loaded smb config files from %s", lp.configfile)
logger.info("Loaded services file OK.")