Index: res/res_config_mysql.c =================================================================== --- res/res_config_mysql.c (revision 748) +++ res/res_config_mysql.c (working copy) @@ -200,6 +200,7 @@ MYSQL_ROW row; if (!(dbh = find_database(database, 1))) { + ast_log(LOG_WARNING, "Database '%s' not found!\n", database); return NULL; } @@ -217,6 +218,7 @@ ast_str_set(&sql, 0, "DESC %s", tablename); if (!mysql_reconnect(dbh)) { + ast_log(LOG_WARNING, "Unable to connect to database '%s'\n", database); release_database(dbh); AST_LIST_UNLOCK(&mysql_tables); return NULL;