File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
4
5
5
cmake_minimum_required (VERSION 3.0)
6
- project (heka VERSION 1.1.14 LANGUAGES C)
6
+ project (heka VERSION 1.1.15 LANGUAGES C)
7
7
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Utility modules for Heka sandboxes" )
8
8
set (CPACK_DEBIAN_PACKAGE_DEPENDS "${PACKAGE_PREFIX} -cjson (>= 2.1)" )
9
9
string (REGEX REPLACE "[()]" "" CPACK_RPM_PACKAGE_REQUIRES ${CPACK_DEBIAN_PACKAGE_DEPENDS} )
Original file line number Diff line number Diff line change 47
47
local send_decode_failures = read_config (" send_decode_failures" )
48
48
49
49
local err_msg = {
50
- Type = " error" ,
50
+ Type = " error.decode " ,
51
51
Payload = nil ,
52
+ Fields = {
53
+ data = nil
54
+ }
52
55
}
53
56
54
57
function process_message (checkpoint )
55
58
local fh = io.stdin
56
59
if input_filename then
57
60
fh = assert (io.open (input_filename , " rb" )) -- closed on plugin shutdown
58
- if checkpoint then
61
+ if checkpoint then
59
62
fh :seek (" set" , checkpoint )
60
63
else
61
64
checkpoint = 0
@@ -67,6 +70,7 @@ function process_message(checkpoint)
67
70
local ok , err = pcall (decode , data , default_headers )
68
71
if (not ok or err ) and send_decode_failures then
69
72
err_msg .Payload = err
73
+ err_msg .Fields .data = data
70
74
pcall (inject_message , err_msg )
71
75
end
72
76
You can’t perform that action at this time.
0 commit comments