summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-03-19 13:54:20 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-05-27 12:08:55 +0200
commitd6a4da30de37b2a3f1a3b4b8f8dd6dc0da3e1b50 (patch)
tree84605bd273aaaf3470f74a160454d7951a011e33 /ipapython
parent7f465e693cd7fceefb284a0b3831504fd2ddbeb4 (diff)
downloadfreeipa-d6a4da30de37b2a3f1a3b4b8f8dd6dc0da3e1b50.tar.gz
freeipa-d6a4da30de37b2a3f1a3b4b8f8dd6dc0da3e1b50.tar.xz
freeipa-d6a4da30de37b2a3f1a3b4b8f8dd6dc0da3e1b50.zip
admin tools: Log IPA version
Add the IPA version, and vendor version if applicable, to the beginning of admintool logs -- both framework and indivitual tools that don't yet use the framework. This will make debugging easier. https://fedorahosted.org/freeipa/ticket/4219 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/admintool.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipapython/admintool.py b/ipapython/admintool.py
index 5beed4a85..d55bd1849 100644
--- a/ipapython/admintool.py
+++ b/ipapython/admintool.py
@@ -283,6 +283,7 @@ class AdminTool(object):
"""
self.log.debug('%s was invoked with arguments %s and options: %s',
self.command_name, self.args, self.safe_options)
+ self.log.debug('IPA version %s' % version.VENDOR_VERSION)
def log_failure(self, error_message, return_value, exception, backtrace):
self.log.debug(''.join(traceback.format_tb(backtrace)))