Skip to content

Commit a28f916

Browse files
show utf8 text in io:format
1 parent d275d3f commit a28f916

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bpe.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ val(Document,Proc,Cond,Action) ->
9595
case Cond(Document,Proc) of
9696
true -> Action(Document,Proc), {reply,Proc};
9797
{false,Message} -> {{reply,Message},Proc#process.task,Proc};
98-
ErrorList -> io:format("BPE:val/4 failed: ~p~n",[ErrorList]),
98+
ErrorList -> io:format("BPE:val/4 failed: ~tp~n",[ErrorList]),
9999
{{reply,ErrorList},Proc#process.task,Proc} end.
100100

101101
option(Proc, Key) -> proplists:get_value(Key,Proc#process.options).

src/bpe_proc.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ process_event(Event,Proc) ->
2121

2222
NewProcState = ProcState#process{task = Target},
2323
FlowReply = fix_reply({Status,{Reason,Target},NewProcState}),
24-
wf:info(?MODULE,"Process ~p Flow Reply ~p ",[Proc#process.id,{Status,{Reason,Target}}]),
24+
wf:info(?MODULE,"Process ~p Flow Reply ~tp ",[Proc#process.id,{Status,{Reason,Target}}]),
2525
kvs:put(transient(NewProcState)),
2626
FlowReply.
2727

@@ -59,7 +59,7 @@ process_flow(Stage,Proc,NoFlow) ->
5959
NewProcState = ProcState#process{task = Target},
6060

6161
FlowReply = fix_reply({Status,{Reason,Target},NewProcState}),
62-
wf:info(?MODULE,"Process ~p Flow Reply ~p ",[Proc#process.id,{Status,{Reason,Target}}]),
62+
wf:info(?MODULE,"Process ~p Flow Reply ~tp ",[Proc#process.id,{Status,{Reason,Target}}]),
6363
kvs:put(transient(NewProcState)),
6464
FlowReply.
6565

0 commit comments

Comments
 (0)