[asterisk-commits] file: trunk r103828 - /trunk/main/loader.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 19 15:54:10 CST 2008


Author: file
Date: Tue Feb 19 15:54:09 2008
New Revision: 103828

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103828
Log:
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)

Modified:
    trunk/main/loader.c

Modified: trunk/main/loader.c
URL: http://svn.digium.com/view/asterisk/trunk/main/loader.c?view=diff&rev=103828&r1=103827&r2=103828
==============================================================================
--- trunk/main/loader.c (original)
+++ trunk/main/loader.c Tue Feb 19 15:54:09 2008
@@ -478,6 +478,7 @@
 
 	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;
 	}
 




More information about the asterisk-commits mailing list