Commits

Anonymous committed cb1b6be

for wmtrace logging, don't dig more than one wm_reqdata/reqstate layer deep

Comments (0)

Files changed (1)

src/webmachine_resource.erl

     {'WMTRACE_ESCAPED_PORT', erlang:port_to_list(Port)};
 escape_trace_data(List) when is_list(List) ->
     escape_trace_list(List, []);
+escape_trace_data(R=#reqstate{}) ->
+    list_to_tuple(
+      escape_trace_data(
+        tuple_to_list(R#reqstate{reqdata='WMTRACE_NESTED_REQDATA'})));
 escape_trace_data(Tuple) when is_tuple(Tuple) ->
     list_to_tuple(escape_trace_data(tuple_to_list(Tuple)));
 escape_trace_data(Other) ->