summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_log.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/couchdb/couch_log.erl b/src/couchdb/couch_log.erl
index 9813f812..b3d3297c 100644
--- a/src/couchdb/couch_log.erl
+++ b/src/couchdb/couch_log.erl
@@ -174,10 +174,10 @@ log(Fd, ConsoleMsg, FileMsg) ->
ok = io:put_chars(Fd, FileMsg).
get_log_messages(Pid, Level, Format, Args) ->
- ConsoleMsg = io_lib:format(
- "[~s] [~p] " ++ Format ++ "~n", [Level, Pid | Args]),
+ ConsoleMsg = unicode:characters_to_binary(io_lib:format(
+ "[~s] [~p] " ++ Format ++ "~n", [Level, Pid | Args])),
FileMsg = ["[", httpd_util:rfc1123_date(), "] ", ConsoleMsg],
- {iolist_to_binary(ConsoleMsg), iolist_to_binary(FileMsg)}.
+ {ConsoleMsg, iolist_to_binary(FileMsg)}.
read(Bytes, Offset) ->
LogFileName = couch_config:get("log", "file"),