From 492d334b463380dbefe8a1df8d50a7d9109c7cab Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 5 Nov 2005 01:24:41 +0000 Subject: Log the payload when the operation fails for developer debugging --- etc/inc/dyndns.class | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'etc') diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index aac5836..e66946b 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -267,6 +267,7 @@ $status = "phpDynDNS: (Error) User Authorization Failed"; } else { $status = "phpDynDNS: (Unknown Response)"; + log_error("phpDynDNS: PAYLOAD: {$data}"); $this->_debug($data); } break; @@ -281,6 +282,7 @@ $status = "phpDynDNS: (Error) User Authorization Failed"; } else { $status = "phpDynDNS: (Unknown Response)"; + log_error("phpDynDNS: PAYLOAD: {$data}"); $this->_debug($data); } break; @@ -295,6 +297,7 @@ $status = "phpDynDNS: (Error) User Authorization Failed"; } else { $status = "phpDynDNS: (Unknown Response)"; + log_error("phpDynDNS: PAYLOAD: {$data}"); $this->_debug($data); } break; @@ -373,6 +376,7 @@ $status = "phpDynDNS: (Success) IP Updated Successfully!"; } else { $status = "phpDynDNS: (Unknown Response)"; + log_error("phpDynDNS: PAYLOAD: {$data}"); $this->_debug($data); } break; @@ -385,6 +389,7 @@ $status = "phpDynDNS: (Success) IP Address Updated Successfully!"; } else { $status = "phpDynDNS: (Unknown Response)"; + log_error("phpDynDNS: PAYLOAD: {$data}"); $this->_debug($data); } break; @@ -401,6 +406,7 @@ $status = "phpDynDNS: (Success) IP Address Updated Successfully!"; } else { $status = "phpDynDNS: (Unknown Response)"; + log_error("phpDynDNS: PAYLOAD: {$data}"); $this->_debug($data); } break; @@ -409,6 +415,7 @@ $status = "phpDynDNS: (Success) IP Address Updated Successfully!"; } else { $status = "phpDynDNS: (Unknown Response)"; + log_error("phpDynDNS: PAYLOAD: {$data}"); $this->_debug($data); } break; -- cgit v1.1