[asterisk-commits] tilghman: trunk r84852 - in /trunk: ./ main/db.c

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


Author: tilghman
Date: Fri Oct  5 14:48:10 2007
New Revision: 84852

URL: http://svn.digium.com/view/asterisk?view=rev&rev=84852
Log:
Merged revisions 84851 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84851 | tilghman | 2007-10-05 14:42:21 -0500 (Fri, 05 Oct 2007) | 2 lines

Log exactly why we can't open the database, if we fail (closes issue #10887)

........

Modified:
    trunk/   (props changed)
    trunk/main/db.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/db.c
URL: http://svn.digium.com/view/asterisk/trunk/main/db.c?view=diff&rev=84852&r1=84851&r2=84852
==============================================================================
--- trunk/main/db.c (original)
+++ trunk/main/db.c Fri Oct  5 14:48:10 2007
@@ -63,7 +63,7 @@
 static int dbinit(void) 
 {
 	if (!astdb && !(astdb = dbopen((char *)ast_config_AST_DB, O_CREAT | O_RDWR, AST_FILE_MODE, 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