]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add a log message that appears when you try to unload a module that isn't loaded.
authorJoshua Colp <jcolp@digium.com>
Tue, 19 Feb 2008 21:54:09 +0000 (21:54 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 19 Feb 2008 21:54:09 +0000 (21:54 +0000)
(closes issue #12033)
Reported by: jamesgolovich
Patches:
      asterisk-loader.diff.txt uploaded by jamesgolovich (license 176)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103828 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/loader.c

index 370e41fa4033c9bdcbcac4eda2412acecfe8143f..79a716ec059d867046eb3fd8c4a4405b3e7433f7 100644 (file)
@@ -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;
        }