Use MATRIX_API_DEBUG_LOG environment variable

The new name indicates in a clearer way that it enables logging of matrix.api
operations.
This commit is contained in:
Adrian Perez de Castro
2016-06-30 00:11:18 +03:00
parent 9fb0bed7c0
commit 0a58777f42

View File

@@ -17,7 +17,7 @@ local function eprintf(fmt, ...)
end
local function get_debug_log_function()
local env_value = os.getenv("MATRIX_DEBUG_LOG")
local env_value = os.getenv("MATRIX_API_DEBUG_LOG")
if env_value and #env_value > 0 and env_value ~= "0" then
return eprintf
else