Use "[api]" as log prefix instead of "[http]"

The old prefix could be confusing if the homeserver URL used the https://
scheme, and the new one better conveys that it is matrix.api who is doing
the logging.
This commit is contained in:
Adrian Perez de Castro
2016-06-30 00:09:56 +03:00
parent 4e27bedc12
commit 9fb0bed7c0

View File

@@ -10,7 +10,7 @@ local json = require "cjson"
local function noprintf(...) end
local function eprintf(fmt, ...)
io.stderr:write("[http] ")
io.stderr:write("[api] ")
io.stderr:write(fmt:format(...))
io.stderr:write("\n")
io.stderr:flush()