Parse python trace lines without timestamps
Change-Id: I4b9bc52283f1748ab603d8742d5f13dd21f83c8c
diff --git a/heka/files/lua/decoders/openstack_log.lua b/heka/files/lua/decoders/openstack_log.lua
index 95b2002..a8f2c59 100644
--- a/heka/files/lua/decoders/openstack_log.lua
+++ b/heka/files/lua/decoders/openstack_log.lua
@@ -68,7 +68,12 @@
m = patt.openstack:match(log)
if not m then
- return -1, string.format("Failed to parse %s log: %s", logger, string.sub(log, 1, 64))
+ if traceback_key == nil then
+ return -1, string.format("Failed to parse %s log: %s", logger, string.sub(log, 1, 64))
+ else
+ table.insert(traceback_lines, log)
+ return 0
+ end
end
local key = {