Fix event_log_watcher bugs introduced in CL:55933
- Explicitly stringify chunk rather than passing it directly to
logging.info, since it is a tuple (will make it a first-class object in
a future CL)
- Don't try to call Close() on the "DB" if it's a dictionary
BUG=chrome-os-partner:19618
TEST=event_log_watcher_unittest
Change-Id: I698fad33d942d112647d372486ce5985233855c0
Reviewed-on: https://gerrit.chromium.org/gerrit/56370
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Jon Salz <jsalz@chromium.org>
Commit-Queue: Jon Salz <jsalz@chromium.org>
diff --git a/py/goofy/goofy.py b/py/goofy/goofy.py
index 4960fcd..2439bc0 100755
--- a/py/goofy/goofy.py
+++ b/py/goofy/goofy.py
@@ -1655,7 +1655,7 @@
for chunk in chunks:
try:
- description = 'event logs (%s)' % chunk
+ description = 'event logs (%s)' % str(chunk)
start_time = time.time()
shopfloor_client = shopfloor.get_instance(
detect=True,