Riho Kurg wrote:

> Changed it. Results are _exatly_ the same :(

OK, set the Apache LogLevel to 'debug' and let's try to find out what's
going on in there. You may want to apply the patch attached in order to
cut down on the unnecesary logging. This patch will be in 1.2.4pl2 soon.

Bye,
Emile
--- mod_midgard.c.bak   Thu Oct 28 11:12:17 1999
+++ mod_midgard.c       Fri Nov  5 09:15:32 1999
@@ -107,9 +107,13 @@
        /* Open a connection to each of the midgard databases defined */
        for (db = &default_database; db; db = db->next) {
                if (db->refcount < 1) { /* Skip unused databases */
-                       ap_log_error(APLOG_MARK, APLOG_NOTICE|APLOG_NOERRNO, s,
-                                    "Midgard: Skipping unused database %s",
-                                    db->database ? db->database:"<default>");
+                       if (db->database)
+                       {
+                               ap_log_error(APLOG_MARK,
+                                       APLOG_NOTICE|APLOG_NOERRNO, s,
+                                       "Midgard: Skipping unused database %s",
+                                       db->database);
+                       }
                        continue;
                }
 
@@ -164,9 +168,9 @@
 
        /* Is this database already defined? */
        for (dbcfg = &default_database; dbcfg; dbcfg = dbcfg->next)
-               if (SAFECMP(database, dbcfg->database) == 0
-                   && SAFECMP(username, dbcfg->username) == 0
-                   && SAFECMP(password, dbcfg->password) == 0)
+               if (SAFECMP(database, dbcfg->database)
+                   && SAFECMP(username, dbcfg->username)
+                   && SAFECMP(password, dbcfg->password))
                        return dbcfg;
 
        /* Database config not found, create a new one */

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to