From 9fb0bed7c09d139b31beda173da0b813ed718986 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Thu, 30 Jun 2016 00:09:56 +0300 Subject: [PATCH] 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. --- matrix/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/api.lua b/matrix/api.lua index 3e6d66a..60a8fd1 100644 --- a/matrix/api.lua +++ b/matrix/api.lua @@ -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()