[asterisk-commits] tilghman: branch 1.4 r84851 - /branches/1.4/main/db.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 5 14:42:21 CDT 2007


Author: tilghman
Date: Fri Oct  5 14:42:21 2007
New Revision: 84851

URL: http://svn.digium.com/view/asterisk?view=rev&rev=84851
Log:
Log exactly why we can't open the database, if we fail (closes issue #10887)

Modified:
    branches/1.4/main/db.c

Modified: branches/1.4/main/db.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/db.c?view=diff&rev=84851&r1=84850&r2=84851
==============================================================================
--- branches/1.4/main/db.c (original)
+++ branches/1.4/main/db.c Fri Oct  5 14:42:21 2007
@@ -63,7 +63,7 @@
 static int dbinit(void) 
 {
 	if (!astdb && !(astdb = dbopen((char *)ast_config_AST_DB, O_CREAT | O_RDWR, 0664, DB_BTREE, NULL))) {
-		ast_log(LOG_WARNING, "Unable to open Asterisk database\n");
+		ast_log(LOG_WARNING, "Unable to open Asterisk database '%s': %s\n", ast_config_AST_DB, strerror(errno));
 		return -1;
 	}
 	return 0;




More information about the asterisk-commits mailing list