summaryrefslogtreecommitdiff
path: root/src/ejabberd_http.erl
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-09-23 15:17:20 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-09-23 15:17:20 +0300
commit5770946f03ba669ea867b787fbd546333a8a3814 (patch)
tree73a03717ac5d4c31e12b92c1aba3b407f3c5329c /src/ejabberd_http.erl
parentFix unicode formatting in ACME module (diff)
Correctly handle unicode in log messages
Diffstat (limited to 'src/ejabberd_http.erl')
-rw-r--r--src/ejabberd_http.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ejabberd_http.erl b/src/ejabberd_http.erl
index c021b668..5c49e9c1 100644
--- a/src/ejabberd_http.erl
+++ b/src/ejabberd_http.erl
@@ -179,7 +179,7 @@ send_file(State, Fd, Size, FileName) ->
end
catch _:{case_clause, {error, Why}} ->
if Why /= closed ->
- ?WARNING_MSG("Failed to read ~s: ~s",
+ ?WARNING_MSG("Failed to read ~ts: ~ts",
[FileName, file_format_error(Why)]),
exit(normal);
true ->
@@ -530,7 +530,7 @@ analyze_ip_xff({IPLast, Port}, XFF) ->
{ok, IPFirst} = inet_parse:address(
binary_to_list(ClientIP)),
?DEBUG("The IP ~w was replaced with ~w due to "
- "header X-Forwarded-For: ~s",
+ "header X-Forwarded-For: ~ts",
[IPLast, IPFirst, XFF]),
IPFirst;
false -> IPLast
@@ -677,12 +677,12 @@ make_file_output(State, Status, Headers, FileName) ->
none;
{error, Why} ->
Reason = file_format_error(Why),
- ?ERROR_MSG("Failed to open ~s: ~s", [FileName, Reason]),
+ ?ERROR_MSG("Failed to open ~ts: ~ts", [FileName, Reason]),
make_text_output(State, 404, Reason, [], <<>>)
end;
{error, Why} ->
Reason = file_format_error(Why),
- ?ERROR_MSG("Failed to read info of ~s: ~s", [FileName, Reason]),
+ ?ERROR_MSG("Failed to read info of ~ts: ~ts", [FileName, Reason]),
make_text_output(State, 404, Reason, [], <<>>)
end.