]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sorcery/realtime: Add a bit of debug and warning messages for bad configs 53/753/2
authorMatt Jordan <mjordan@digium.com>
Wed, 1 Jul 2015 21:04:50 +0000 (16:04 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 1 Jul 2015 21:33:53 +0000 (16:33 -0500)
commit8e07ab145d7e4085968696a17fc7167d8ee2ad06
treef4b829b2021623867fd5ebbcd609e298063e2a90
parent69bfa518a02cbd69b364e5b0a500fc160e7b285d
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
main/config.c
main/sorcery.c