diff options
author | Kinsey Moore <kmoore@digium.com> | 2014-12-12 14:04:06 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2014-12-12 14:04:06 +0000 |
commit | b99770d4fe1a8fc7c0404cc7e62a546833d3dad7 (patch) | |
tree | 4b010544f88391d323fb456e7a4617f7dcd665cc /res/res_sorcery_config.c | |
parent | 74d43977cf1ec43b9d5d8f84cc64592fdbd11115 (diff) |
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
........
Merged revisions 429429 from http://svn.asterisk.org/svn/asterisk/branches/12
........
Merged revisions 429430 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_sorcery_config.c')
-rw-r--r-- | res/res_sorcery_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_sorcery_config.c b/res/res_sorcery_config.c index 176c7fe68..1680196aa 100644 --- a/res/res_sorcery_config.c +++ b/res/res_sorcery_config.c @@ -284,6 +284,8 @@ static void sorcery_config_internal_load(void *data, const struct ast_sorcery *s 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); |