# HG changeset patch # User Kim Alvefur # Date 1372547629 -7200 # Node ID 608d9019b0deb1a5f996bf66d739082e456a6c48 # Parent 1abb8f2a576173c60c5455d147c99855e70c2d5e mod_log_auth: Don't cause an error if any of the logged fields are missing diff -r 1abb8f2a5761 -r 608d9019b0de mod_log_auth/mod_log_auth.lua --- a/mod_log_auth/mod_log_auth.lua Sun Jun 30 01:12:24 2013 +0200 +++ b/mod_log_auth/mod_log_auth.lua Sun Jun 30 01:13:49 2013 +0200 @@ -1,4 +1,4 @@ module:hook("authentication-failure", function (event) - module:log("info", "Failed authentication attempt (%s) from IP: %s", event.condition, event.session.ip); + module:log("info", "Failed authentication attempt (%s) from IP: %s", event.condition or "unknown-condition", event.session.ip or "?"); end);