# HG changeset patch # User Matthew Wild # Date 1376426225 -3600 # Node ID a7d0d129df6f67191955292200ccc1cf9019f3bb # Parent 3c82984ffa51bf5f27f026837cf181132808f9cc mod_auth_external: Log full response from pty if it appears to be an error message diff -r 3c82984ffa51 -r a7d0d129df6f mod_auth_external/mod_auth_external.lua --- a/mod_auth_external/mod_auth_external.lua Tue Aug 13 20:01:33 2013 +0100 +++ b/mod_auth_external/mod_auth_external.lua Tue Aug 13 21:37:05 2013 +0100 @@ -67,9 +67,7 @@ return true; else if response then - log("warn", "Unable to interpret data from auth process, %d bytes beginning with: %s", #response, (response:sub(1,4):gsub(".", function (c) - return ("%02X "):format(c:byte()); - end))); + log("warn", "Unable to interpret data from auth process, %s", (response:match("^error:") and response) or ("["..#response.." bytes]")); else log("warn", "Error while waiting for result from auth process: %s", response or "unknown error"); end