summaryrefslogtreecommitdiffstats
path: root/ipaserver/advise
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-02-05 09:24:22 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-02-05 15:35:36 +0100
commit894b70a164f06a865504e49cd4763670e4e1f8f6 (patch)
treec898cc05709dce827204d774ba169c336e3fdafd /ipaserver/advise
parent7b5124416b193ce026ff30f1968e00d8c800d881 (diff)
downloadfreeipa-894b70a164f06a865504e49cd4763670e4e1f8f6.tar.gz
freeipa-894b70a164f06a865504e49cd4763670e4e1f8f6.tar.xz
freeipa-894b70a164f06a865504e49cd4763670e4e1f8f6.zip
ipa tool: Print the name of the server we are connecting to with -v
The logging level for these messages was decreaed so that they do not show up in ipa-advise output. Reset the log level to INFO and configure ipa-advise to not display INFO messages from xmlclient by default. Partially reverts commit efe5a96725d3ddcd05b03a1ca9df5597eee693be https://fedorahosted.org/freeipa/ticket/4135 Reviewed-By: Tomáš Babej <tbabej@redhat.com>
Diffstat (limited to 'ipaserver/advise')
-rw-r--r--ipaserver/advise/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipaserver/advise/base.py b/ipaserver/advise/base.py
index abaf708dc..3f57f357e 100644
--- a/ipaserver/advise/base.py
+++ b/ipaserver/advise/base.py
@@ -22,6 +22,7 @@ from ipalib import api
from ipalib.errors import ValidationError
from ipapython import admintool
from textwrap import wrap
+from ipapython.ipa_log_manager import log_mgr
"""
@@ -173,6 +174,10 @@ class IpaAdvise(admintool.AdminTool):
api.bootstrap(in_server=False, context='advise')
api.finalize()
+ if not self.options.verbose:
+ # Do not print connection information by default
+ logger_name = r'ipa\.ipalib\.plugins\.rpcclient'
+ log_mgr.configure(dict(logger_regexps=[(logger_name, 'warning')]))
# With no argument, print the list out and exit
if not self.args: