Skip to content

Commit

Permalink
for wmtrace logging, don't dig more than one wm_reqdata/reqstate laye…
Browse files Browse the repository at this point in the history
…r deep
  • Loading branch information
beerriot committed Dec 8, 2009
1 parent f319b8f commit 0e97f81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webmachine_resource.erl
Expand Up @@ -191,6 +191,10 @@ escape_trace_data(Port) when is_port(Port) ->
{'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) ->
Expand Down

0 comments on commit 0e97f81

Please sign in to comment.