]> granicus.if.org Git - ejabberd/commitdiff
Fix logging in tests on R17
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 21 Nov 2016 19:04:25 +0000 (22:04 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 21 Nov 2016 19:04:25 +0000 (22:04 +0300)
test/suite.erl

index e2390c599cfebb540d11f73ba2c16b91ebb8767e..3d832dd593112c7b64a11e119d9aeefd98097240 100644 (file)
@@ -480,7 +480,7 @@ decode_stream_element(NS, El) ->
 format_element(El) ->
     case erlang:function_exported(ct, log, 5) of
        true -> ejabberd_web_admin:pretty_print_xml(El);
-       false -> io_lib:format(" ~s~n", El)
+       false -> io_lib:format("~p~n", [El])
     end.
 
 decode(El, NS, Opts) ->