Changeset 16382

Show
Ignore:
Timestamp:
05/15/08 14:58:54 (5 months ago)
Author:
piotras
Message:

Removed g_log in favour of ap_error_log

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/branch-1-8/src/core/midgard/midgard/select_db2.h

    r7813 r16382  
    3232{ 
    3333   if (dbc && dbc == rcfg->database.current && dbc->handle && dbc->handle->mgd) { 
    34      g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, 
    35          "Midgard: select_database kept current database %s", 
    36                               dbc->name); 
     34      ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r, 
     35      "Midgard: select_database kept current database %s", dbc->name); 
    3736      rcfg->mgd = dbc->handle->mgd; 
    3837 
     
    5049 
    5150         if (dbc->handle->mgd != NULL)  { 
    52            g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG
     51               ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r
    5352               "Midgard: select_database opened database %s", 
    5453               dbc->name); 
    5554         } 
    5655         else { 
    57            g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG
     56          ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r
    5857               "Midgard: failed to open database '%s' for user '%s'", 
    5958                  dbc->name, dbc->handle->username); 
     
    6665                     dbc->handle->hostname, dbc->name, dbc->handle->username, dbc->handle->password) 
    6766                  && mgd_select_db(dbc->handle->mgd, dbc->name))) { 
    68            g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG
     67           ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r
    6968               "Midgard: switching to %s", dbc->name); 
    7069         } 
    7170         else { 
    72            g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG
     71           ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r
    7372               "Midgard: switching to %s failed", dbc->name); 
    7473            /* DONT GIVE UP try disconnect and reconnect!*/   
     
    8685   } 
    8786   else { 
    88      g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG
     87     ap_log_rerror(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r
    8988         "Midgard: select_database reused open (%s)", 
    9089                              dbc->name);