[autotest] Fix a bug in bulk_post in metadb upload

BUG=None
TEST=local run

Change-Id: I60e4e090bdcc78e1ff1db520f26ce1395479ee8b
Reviewed-on: https://chromium-review.googlesource.com/539062
Reviewed-by: Dan Shi <dshi@google.com>
Reviewed-by: Paul Hobbs <phobbs@google.com>
Tested-by: Dan Shi <dshi@google.com>
Commit-Queue: Dan Shi <dshi@google.com>
diff --git a/client/common_lib/cros/graphite/autotest_es.py b/client/common_lib/cros/graphite/autotest_es.py
index ed28582..4f0a0e0 100644
--- a/client/common_lib/cros/graphite/autotest_es.py
+++ b/client/common_lib/cros/graphite/autotest_es.py
@@ -118,7 +118,6 @@
     """
     if not host:
         return True
-    raise Exception(str(host) + '+'*99)
     esmd = es_utils.ESMetadata(use_http=True, host=host, port=port,
                                timeout=timeout, index=index,
                                udp_port=ES_UDP_PORT)
diff --git a/site_utils/metadata_reporter.py b/site_utils/metadata_reporter.py
index 8bf3947..196007b 100644
--- a/site_utils/metadata_reporter.py
+++ b/site_utils/metadata_reporter.py
@@ -133,7 +133,7 @@
                 sleep_time = 0.5
             _abort.wait(timeout=sleep_time)
     except Exception as e:
-        logging.error('Metadata reporter thread failed with error: %s', e)
+        logging.exception('Metadata reporter thread failed with error: %s', e)
         raise
     finally:
         logging.info('Metadata reporting thread is exiting.')