=== Test case: json_formatter_SUITE:acc_is_preserved/1 (click for source code)

=== Config value:

    [{watchdog,<0.979.2>},
     {tc_logfile,"/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-01-25_13.09.06/lib.mongooseim.logs/run.2022-01-25_13.09.07/json_formatter_suite.acc_is_preserved.html"},
     {tc_group_properties,[{suite,json_formatter_SUITE}]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/_build/test/lib/mongooseim/test/json_formatter_SUITE_data/"},
     {priv_dir,"/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-01-25_13.09.06/lib.mongooseim.logs/run.2022-01-25_13.09.07/log_private/"}]

=== Current directory is "/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-01-25_13.09.06"

=== Started at 2022-01-25 13:11:06


*** System report during json_formatter_SUITE:acc_is_preserved/1 2022-01-25 13:11:06.450 ***
=PROGRESS REPORT==== 25-Jan-2022::13:11:06.450500 ===
    supervisor: {local,logger_sup}
    started: [{pid,<0.1014.2>},
              {id,json_log},
              {mfargs,
                  {logger_olp,start_link,
                      [logger_std_h_json_log,logger_h_common,
                       #{config =>
                             #{compress_on_rotate => false,
                               file =>
                                   "/home/circleci/project/_build/test/logs/ct_run.mongooseim@localhost.2022-01-25_13.09.06/log/mongooseim.log",
                               file_check => 0,
                               filesync_repeat_interval => 5000,
                               max_no_bytes => infinity,max_no_files => 0,
                               modes => [delayed_write,raw,append],
                               type => file},
                         filter_default => log,
                         filters =>
                             [{preserve_acc_filter,
                                  {fun mongoose_log_filter:preserve_acc_filter/2,
                                   no_state}},
                              {format_packet_filter,
                                  {fun mongoose_log_filter:format_packet_filter/2,
                                   no_state}},
                              {format_acc_filter,
                                  {fun mongoose_log_filter:format_acc_filter/2,
                                   no_state}},
                              {format_c2s_state_filter,
                                  {fun mongoose_log_filter:format_c2s_state_filter/2,
                                   no_state}},
                              {format_stacktrace_filter,
                                  {fun mongoose_log_filter:format_stacktrace_filter/2,
                                   no_state}}],
                         formatter => {mongoose_json_formatter,#{}},
                         id => json_log,level => info,module => logger_std_h},
                       #{}]}},
              {restart_type,temporary},
              {significant,false},
              {shutdown,2000},
              {child_type,worker}]



*** System report during json_formatter_SUITE:acc_is_preserved/1 2022-01-25 13:11:06.451 ***
=INFO REPORT==== 25-Jan-2022::13:11:06.451140 ===
    acc: #{lserver => <<"localhost">>,mongoose_acc => true,
           non_strippable => [],
           origin_location =>
               #{file => "/Users/user/MongooseIM/src/ejabberd_router.erl",
                 line => 116,
                 mfa => {ejabberd_router,route,3}},
           origin_pid => <0.1011.2>,
           origin_stanza =>
               <<"<message type='chat' id='1111'><body>JSON-match-this-preserve-acc</body></message>">>,
           ref => #Ref<0.293885653.3426222082.159064>,
           stanza =>
               #{element =>
                     {xmlel,<<"message">>,
                         [{<<"type">>,<<"chat">>},{<<"id">>,<<"1111">>}],
                         [{xmlel,<<"body">>,[],
                              [{xmlcdata,
                                   <<"JSON-match-this-preserve-acc">>}]}]},
                 from_jid =>
                     {jid,<<"userA">>,<<"localhost">>,<<>>,<<"usera">>,
                         <<"localhost">>,<<>>},
                 name => <<"message">>,
                 ref => #Ref<0.293885653.3426222082.159065>,
                 to_jid =>
                     {jid,<<"userB">>,<<"localhost">>,<<>>,<<"userb">>,
                         <<"localhost">>,<<>>},
                 type => <<"chat">>},
           timestamp => 1598878576962100}
    acc_original: <<"#{lserver => <<\"localhost\">>,mongoose_acc => true,non_strippable => [],origin_location => #{file => \"/Users/user/MongooseIM/src/ejabberd_router.erl\",line => 116,mfa => {ejabberd_router,route,3}},origin_pid => <0.1011.2>,origin_stanza => <<\"<message type='chat' id='1111'><body>JSON-match-this-preserve-acc</body></message>\">>,ref => #Ref<0.293885653.3426222082.159064>,stanza => #{element => {xmlel,<<\"message\">>,[{<<\"type\">>,<<\"chat\">>},{<<\"id\">>,<<\"1111\">>}],[{xmlel,<<\"body\">>,[],[{xmlcdata,<<\"JSON-match-this-preserve-acc\">>}]}]},from_jid => {jid,<<\"userA\">>,<<\"localhost\">>,<<>>,<<\"usera\">>,<<\"localhost\">>,<<>>},name => <<\"message\">>,ref => #Ref<0.293885653.3426222082.159065>,to_jid => {jid,<<\"userB\">>,<<\"localhost\">>,<<>>,<<\"userb\">>,<<\"localhost\">>,<<>>},type => <<\"chat\">>},timestamp => 1598878576962100}">>
    routing_modules: [mongoose_router_1,mongoose_router_2]
    routing_result: [{{inside,two_tuples}},{inside,one_tuple}]
    what: routing_result




=== Ended at 2022-01-25 13:11:06
=== successfully completed test case
=== === Returned value: <<"<0.1011.2>">>


Test run history | Top level test index | Latest test result