mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Correctly handle unicode in log messages
This commit is contained in:
parent
2e1e128833
commit
5770946f03
124 changed files with 759 additions and 765 deletions
|
@ -129,7 +129,7 @@ handle_call({cmd, Cmd, EndTime}, _From, State) ->
|
|||
{reply, decode_bool(N), State};
|
||||
{Port, Data} ->
|
||||
?ERROR_MSG("Received unexpected response from external "
|
||||
"authentication program '~s': ~p "
|
||||
"authentication program '~ts': ~p "
|
||||
"(port = ~p, pid = ~w)",
|
||||
[State#state.prog, Data, Port, State#state.os_pid]),
|
||||
{reply, {error, unexpected_response}, State};
|
||||
|
@ -149,11 +149,11 @@ handle_info({'EXIT', Port, _Reason}, #state{port = Port,
|
|||
start_time = Time} = State) ->
|
||||
case curr_time() - Time of
|
||||
Diff when Diff < 1000 ->
|
||||
?ERROR_MSG("Failed to start external authentication program '~s'",
|
||||
?ERROR_MSG("Failed to start external authentication program '~ts'",
|
||||
[State#state.prog]),
|
||||
{stop, normal, State};
|
||||
_ ->
|
||||
?ERROR_MSG("External authentication program '~s' has terminated "
|
||||
?ERROR_MSG("External authentication program '~ts' has terminated "
|
||||
"unexpectedly (pid=~w), restarting via supervisor...",
|
||||
[State#state.prog, State#state.os_pid]),
|
||||
{stop, normal, State}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue