Skip to content
Snippets Groups Projects
Commit 1a7ada66 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

SegmentsTracker: increase verbosity

- also report end-of-stream book keeping activity
parent 024306e1
No related branches found
No related tags found
No related merge requests found
......@@ -335,8 +335,8 @@ class SegmentsTracker(object):
"""
timestamp = LIGOTimeGPS(0, timestamp) # timestamp is in nanoseconds
if self.verbose and elem is not None:
print >>sys.stderr, "%s: %s '%s' state transition: %s @ %s" % (elem.get_name(), instrument, segtype, new_state, str(timestamp))
if self.verbose:
print >>sys.stderr, "%s: %s '%s' state transition: %s @ %s" % ((elem.get_name() if elem is not None else "<internal>"), instrument, segtype, new_state, str(timestamp))
if new_state == "off":
# record end of segment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment