summaryrefslogtreecommitdiff
path: root/main/config.c
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-07-01 16:04:50 -0500
committerMatt Jordan <mjordan@digium.com>2015-07-02 07:31:56 -0500
commitef74ccb18dd1faab04464640f5e93568c6a97ec7 (patch)
tree077e5390951f32ea53221fa8df55328913ddc1e8 /main/config.c
parent537df26f9c23706b378d0398f6969cd0f778c9d3 (diff)
sorcery/realtime: Add a bit of debug and warning messages for bad configs
When a mapping does not exist between a sorcery.conf defined object and a realtime mapping in extconf, currently, the user will receive a slew of ERROR messages that don't really tell what is happening. Some ERROR messages may even be misleading, as they occur after the sorcery API has already given up on the attempt to load and create the sorcery object. This patch adds a bit of debug and a useful WARNING message for when a wizard's open callback fails for a particular object type. In the bad configurations that resulted in this patch, this provided a 'root cause' WARNING message that pointed in the right direction of the configuration problem. Change-Id: I1cc7344f2b015b8b9c85a7e6ebc8cb4753a8f80b
Diffstat (limited to 'main/config.c')
-rw-r--r--main/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/config.c b/main/config.c
index d6a077b2d..008abffdf 100644
--- a/main/config.c
+++ b/main/config.c
@@ -2869,6 +2869,7 @@ int ast_realtime_is_mapping_defined(const char *family)
return 1;
}
}
+ ast_debug(5, "Failed to find a realtime mapping for %s\n", family);
return 0;
}