<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -155,7 +155,7 @@ queue_remove (max_connections_peer_data_t *peer_data)
   maxconn_cf-&gt;queue_length -= 1;
   assert(maxconn_cf-&gt;queue_length == queue_size(peer_data-&gt;maxconn_cf));
 
-  ngx_log_debug1( NGX_LOG_DEBUG_HTTP
+  ngx_log_error( NGX_LOG_INFO
                 , peer_data-&gt;r-&gt;connection-&gt;log
                 , 0
                 , &quot;max_connections del queue (new size %ui)&quot;
@@ -215,7 +215,7 @@ queue_push (max_connections_srv_conf_t *maxconn_cf, max_connections_peer_data_t
   assert(maxconn_cf-&gt;queue_length == queue_size(peer_data-&gt;maxconn_cf));
   assert(maxconn_cf-&gt;max_queue_length &gt;=  maxconn_cf-&gt;queue_length);
 
-  ngx_log_debug1( NGX_LOG_DEBUG_HTTP
+  ngx_log_error( NGX_LOG_INFO
                 , peer_data-&gt;r-&gt;connection-&gt;log
                 , 0
                 , &quot;max_connections add queue (new size %ui)&quot;
@@ -303,7 +303,7 @@ dispatch (max_connections_srv_conf_t *maxconn_cf)
   assert(!r-&gt;connection-&gt;error);
   assert(peer_data-&gt;backend == NULL);
 
-  ngx_log_debug3( NGX_LOG_DEBUG_HTTP
+  ngx_log_error( NGX_LOG_INFO
                 , r-&gt;connection-&gt;log
                 , 0
                 , &quot;max_connections dispatch (max_queue_length: %ui, queue timeout: %ui, maxconn: %ui)&quot;
@@ -344,12 +344,12 @@ queue_check_event(ngx_event_t *ev)
   {
     max_connections_peer_data_t *peer_data = queue_shift(maxconn_cf);
     assert(peer_data == oldest);
-    ngx_log_debug0( NGX_LOG_DEBUG_HTTP
+    ngx_log_error( NGX_LOG_INFO
                   , peer_data-&gt;r-&gt;connection-&gt;log
                   , 0
                   , &quot;max_connections expire&quot;
                   );
-    ngx_http_finalize_request(peer_data-&gt;r, NGX_HTTP_INTERNAL_SERVER_ERROR);
+    ngx_http_finalize_request(peer_data-&gt;r, NGX_HTTP_QUEUE_EXPIRATION);
   }
 
   /* try to dispatch some requets */
@@ -406,7 +406,7 @@ peer_free (ngx_peer_connection_t *pc, void *data, ngx_uint_t state)
   if(backend) {
     assert(backend-&gt;connections &gt; 0);
     backend-&gt;connections--; /* free the slot */
-    ngx_log_debug2( NGX_LOG_DEBUG_HTTP
+    ngx_log_error( NGX_LOG_INFO
                   , peer_data-&gt;r-&gt;connection-&gt;log
                   , 0
                   , &quot;max_connections recv client from %V (now %ui connections)&quot;
@@ -420,7 +420,7 @@ peer_free (ngx_peer_connection_t *pc, void *data, ngx_uint_t state)
    * error (state &amp; NGX_PEER_NEXT) 
    */ 
   if(state &amp; NGX_PEER_FAILED) {
-    ngx_log_debug1( NGX_LOG_DEBUG_HTTP
+    ngx_log_error( NGX_LOG_INFO
                   , pc-&gt;log
                   , 0
                   , &quot;max_connections %V failed &quot;
@@ -435,7 +435,7 @@ peer_free (ngx_peer_connection_t *pc, void *data, ngx_uint_t state)
 
     if(upstreams_are_all_dead(maxconn_cf)) {
       pc-&gt;tries = 0; /* kill this request */
-      ngx_log_debug0( NGX_LOG_DEBUG_HTTP
+      ngx_log_error( NGX_LOG_INFO
                     , pc-&gt;log
                     , 0
                     , &quot;max_connections all backends are dead. killing request.&quot;
@@ -478,7 +478,7 @@ peer_get (ngx_peer_connection_t *pc, void *data)
   pc-&gt;socklen  = backend-&gt;socklen;
   pc-&gt;name     = backend-&gt;name;
 
-  ngx_log_debug2( NGX_LOG_DEBUG_HTTP
+  ngx_log_error( NGX_LOG_INFO
                 , pc-&gt;log
                 , 0
                 , &quot;max_connections sending client to %V (now %ui connections)&quot;
@@ -520,7 +520,7 @@ peer_init (ngx_http_request_t *r, ngx_http_upstream_srv_conf_t *uscf)
 static ngx_int_t
 max_connections_init(ngx_conf_t *cf, ngx_http_upstream_srv_conf_t *uscf)
 {
-  ngx_log_debug0( NGX_LOG_DEBUG_HTTP
+  ngx_log_error( NGX_LOG_INFO
                 , cf-&gt;log
                 , 0
                 , &quot;max_connections_init&quot;</diff>
      <filename>max_connections_module.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7d69b603d29ff443d89305b2b0315216e8160dbd</id>
    </parent>
  </parents>
  <author>
    <name>Dylan Egan</name>
    <email>me@dylanegan.com</email>
  </author>
  <url>http://github.com/ezmobius/nginx-ey-balancer/commit/3103076bd80282c450e90db19c0f65d36e62fee8</url>
  <id>3103076bd80282c450e90db19c0f65d36e62fee8</id>
  <committed-date>2009-01-22T03:46:26-08:00</committed-date>
  <authored-date>2009-01-13T14:10:36-08:00</authored-date>
  <message>Log at info error level to get details with using the full debugging logging. Also use custom status code to log expired requests.</message>
  <tree>b0a50ac863d9294c1ed2a5980ad6b762b83595b5</tree>
  <committer>
    <name>Ryan</name>
    <email>ry@tinyclouds.org</email>
  </committer>
</commit>
