Skip to content

Commit cf94798

Browse files
committed
try allow missing message in logs
1 parent 06f39f1 commit cf94798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jobs/logging-legacy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
struct _LegacyLogging <: _JobLoggingAPIVersion end
22

33
function JobLogMessage(::_LegacyLogging, json::Dict, offset::Integer)
4-
message = _get_json(json, "message", String)
4+
message = _get_json_or(json, "message", String, "")
55
keywords = _get_json_or(json, "keywords", Dict, Dict{String, Any}())
66
metadata = _get_json_or(json, "metadata", Dict, Dict{String, Any}())
77
timestamp = if haskey(json, "timestamp")

0 commit comments

Comments
 (0)