[asterisk-commits] kmoore: branch 12 r429429 - /branches/12/res/res_sorcery_config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 12 08:02:36 CST 2014


Author: kmoore
Date: Fri Dec 12 08:02:30 2014
New Revision: 429429

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=429429
Log:
Sorcery: Log when old config remains in use

This adds a log message notifying the user that a stale configuration
is in place upon reload when a config object fails to load. This
situation can end up causing confusion when the object failed to load
but exists from a previous config load especially when the old config
is significantly different from the new config.

Review: https://reviewboard.asterisk.org/r/4250/
Reported by: Thomas Thompson

Modified:
    branches/12/res/res_sorcery_config.c

Modified: branches/12/res/res_sorcery_config.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_sorcery_config.c?view=diff&rev=429429&r1=429428&r2=429429
==============================================================================
--- branches/12/res/res_sorcery_config.c (original)
+++ branches/12/res/res_sorcery_config.c Fri Dec 12 08:02:30 2014
@@ -284,6 +284,8 @@
 			if (!(obj = sorcery_config_retrieve_id(sorcery, data, type, id))) {
 				continue;
 			}
+
+			ast_log(LOG_NOTICE, "Retaining existing configuration for object of type '%s' with id '%s'\n", type, id);
 		}
 
 		ao2_link_flags(objects, obj, OBJ_NOLOCK);




More information about the asterisk-commits mailing list