aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-19 21:54:09 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-19 21:54:09 +0000
commit86f27cdaa4ae0036a24cfacb6a79eef4ea072cd6 (patch)
treef352ec604bc16b9cd29dffd5ebaea1c168e096b4
parent25e78c8a05e0a52b1c7dcd918dc7e7981f421ba9 (diff)
Add a log message that appears when you try to unload a module that isn't loaded.
(closes issue #12033) Reported by: jamesgolovich Patches: asterisk-loader.diff.txt uploaded by jamesgolovich (license 176) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103828 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/loader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/loader.c b/main/loader.c
index 370e41fa4..79a716ec0 100644
--- a/main/loader.c
+++ b/main/loader.c
@@ -478,6 +478,7 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode f
if (!(mod = find_resource(resource_name, 0))) {
AST_LIST_UNLOCK(&module_list);
+ ast_log(LOG_WARNING, "Unload failed, '%s' could not be found\n", resource_name);
return 0;
}