Page MenuHomeDevCentral

Log entries with spaces in component name aren't processed by Wearg
Closed, ResolvedPublic

Description

Wearg partyline
11:12:56 <Dereckson> .tcl could_be_a_component "Docker Hub"
11:12:56 <Wearg> Tcl: 1
11:14:25 <Dereckson> .+log [Docker Hub] Configure web hook for nasqueron/jenkins-slave-barebone to trigger a notification
11:14:35 <Dereckson> .tcl putdebug
11:14:35 <Wearg> [DEBUG] missing value to go with key
11:14:35 <Wearg>     while executing
11:14:35 <Wearg> "dict map {k v} $dictToEncode {
11:14:35 <Wearg>         set v [::json::write string $v]
11:14:35 <Wearg>     }"
11:14:35 <Wearg>     (procedure "dict2json" line 2)
11:14:35 <Wearg>     invoked from within
11:14:35 <Wearg> "dict2json "
11:14:35 <Wearg>         date [iso8601date]
11:14:35 <Wearg>         emitter $emitter
11:14:35 <Wearg>         source {$source}
11:14:35 <Wearg>         component $component
11:14:35 <Wearg>         entry {$entry}
11:14:35 <Wearg>     ""
11:14:35 <Wearg>     (procedure "add_to_servers_log" line 2)
11:14:35 <Wearg>     invoked from within
11:14:35 <Wearg> "add_to_servers_log $emitter "$network $source" $component $entry"
11:14:35 <Wearg>     (procedure "handle_send_to_servers_log" line 6)
11:14:35 <Wearg>     invoked from within
11:14:35 <Wearg> "handle_send_to_servers_log $handle $username $arg "dcc $idx""
11:14:35 <Wearg>     (procedure "dcc:log" line 3)
11:14:35 <Wearg>     invoked from within
11:14:35 <Wearg> "dcc:log $_dcc1 $_dcc2 $_dcc3"
11:14:35 <Wearg> Tcl:

The $component variable needs to be protected in the dict data structure.