Fixes for Onos cord instance wrapper restart case.
Add a exception marker for logs with exceptions.
Change-Id: Ic68f15ba777768ab040c89985d7044cdf1867ef7
diff --git a/src/test/utils/OnosLog.py b/src/test/utils/OnosLog.py
index a5e0fa7..0a31b80 100644
--- a/src/test/utils/OnosLog.py
+++ b/src/test/utils/OnosLog.py
@@ -53,7 +53,9 @@
if t == 'Exception':
exception_map[t] = lines[i+1:i+1+10]
output = '\n'.join(match_lines)
- output += '\n'.join(exception_map['Exception'])
+ if len(exception_map['Exception']) > 0:
+ output += '\nException:\n'
+ output += '\n'.join(exception_map['Exception'])
#update the last snapshot
if cache_result is True: