Преглед на файлове

[hadoop] Make sure to use LOG.exception when handling exceptions

Erick Tryzelaar преди 11 години
родител
ревизия
ed44419
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      desktop/libs/hadoop/src/hadoop/cluster.py

+ 2 - 2
desktop/libs/hadoop/src/hadoop/cluster.py

@@ -138,7 +138,7 @@ def get_next_ha_mrcluster():
           else:
             LOG.info('JobTracker %s is not RUNNING, skipping it: %s' % (name, status))
         except Exception, ex:
-          LOG.info('JobTracker %s is not available, skipping it: %s' % (name, ex))
+          LOG.exception('JobTracker %s is not available, skipping it: %s' % (name, ex))
       else:
         return (config, jt)
   return None
@@ -198,7 +198,7 @@ def get_next_ha_yarncluster():
           else:
             LOG.info('RM %s is not RUNNING, skipping it: %s' % (name, cluster_info))
         except Exception, ex:
-          LOG.info('RM %s is not available, skipping it: %s' % (name, ex))
+          LOG.exception('RM %s is not available, skipping it: %s' % (name, ex))
       else:
         return (config, rm)
   return None