]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
More logging in get_distro_from_downburst()
authorZack Cerza <zack@redhat.com>
Wed, 17 Dec 2014 00:07:56 +0000 (17:07 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 17 Dec 2014 00:07:56 +0000 (17:07 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/lock.py

index 96e243370813fd5465cd74af3feda512ff6589df..91ddb3bdc96d6488f5c6cfdecc7a6100400a0f7a 100644 (file)
@@ -49,6 +49,7 @@ def get_distro_from_downburst():
                      u'debian': [u'6.0', u'7.0']}
     executable_cmd = find_executable('downburst')
     if not executable_cmd:
+        log.warn("Downburst not found!")
         log.info('Using default values for supported os_type/os_version')
         return default_table
     try:
@@ -56,6 +57,7 @@ def get_distro_from_downburst():
         downburst_data = json.loads(output)
         return downburst_data
     except (subprocess.CalledProcessError, OSError):
+        log.exception("Error calling downburst!")
         log.info('Using default values for supported os_type/os_version')
         return default_table