[asterisk-commits] russell: branch 1.8 r292523 - /branches/1.8/res/res_config_ldap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 21 06:36:50 CDT 2010


Author: russell
Date: Thu Oct 21 06:36:47 2010
New Revision: 292523

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=292523
Log:
Add var=value to log message on update failure, and add newline.

... just for you, Leif.

Modified:
    branches/1.8/res/res_config_ldap.c

Modified: branches/1.8/res/res_config_ldap.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_config_ldap.c?view=diff&rev=292523&r1=292522&r2=292523
==============================================================================
--- branches/1.8/res/res_config_ldap.c (original)
+++ branches/1.8/res/res_config_ldap.c Thu Oct 21 06:36:47 2010
@@ -1321,7 +1321,8 @@
 		for (i = 0; ldap_entry; i++) { 
 			dn = ldap_get_dn(ldapConn, ldap_entry);
 			if ((error = ldap_modify_ext_s(ldapConn, dn, ldap_mods, NULL, NULL)) != LDAP_SUCCESS)  {
-				ast_log(LOG_ERROR, "Couldn't modify dn:%s because %s", dn, ldap_err2string(error));
+				ast_log(LOG_ERROR, "Couldn't modify '%s'='%s', dn:%s because %s\n",
+						attribute, lookup, dn, ldap_err2string(error));
 			}
 
 			ldap_entry = ldap_next_entry(ldapConn, ldap_entry);




More information about the asterisk-commits mailing list