<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -943,7 +943,7 @@ static void write_bin_error(conn *c, protocol_binary_response_status err, int sw
         fprintf(stderr, &quot;&gt;%d UNHANDLED ERROR: %d\n&quot;, c-&gt;sfd, err);
     }
 
-    if (settings.verbose &gt; 0) {
+    if (settings.verbose &gt; 1) {
         fprintf(stderr, &quot;&gt;%d Writing an error: %s\n&quot;, c-&gt;sfd, errstr);
     }
 
@@ -994,7 +994,7 @@ static void complete_incr_bin(conn *c) {
     key = binary_get_key(c);
     nkey = c-&gt;binary_header.request.keylen;
 
-    if (settings.verbose) {
+    if (settings.verbose &gt; 1) {
         int i;
         fprintf(stderr, &quot;incr &quot;);
 
@@ -1151,7 +1151,7 @@ static void process_bin_get(conn *c) {
     char* key = binary_get_key(c);
     size_t nkey = c-&gt;binary_header.request.keylen;
 
-    if (settings.verbose) {
+    if (settings.verbose &gt; 1) {
         int ii;
         fprintf(stderr, &quot;&lt;%d GET &quot;, c-&gt;sfd);
         for (ii = 0; ii &lt; nkey; ++ii) {
@@ -1333,7 +1333,7 @@ static void process_bin_stat(conn *c) {
     char *subcommand = binary_get_key(c);
     size_t nkey = c-&gt;binary_header.request.keylen;
 
-    if (settings.verbose) {
+    if (settings.verbose &gt; 1) {
         int ii;
         fprintf(stderr, &quot;&lt;%d STATS &quot;, c-&gt;sfd);
         for (ii = 0; ii &lt; nkey; ++ii) {
@@ -1411,7 +1411,7 @@ static void bin_read_key(conn *c, enum bin_substates next_substate, int extra) {
         }
 
         if (nsize != c-&gt;rsize) {
-            if (settings.verbose) {
+            if (settings.verbose &gt; 1) {
                 fprintf(stderr, &quot;%d: Need to grow buffer from %lu to %lu\n&quot;,
                         c-&gt;sfd, (unsigned long)c-&gt;rsize, (unsigned long)nsize);
             }
@@ -1433,7 +1433,7 @@ static void bin_read_key(conn *c, enum bin_substates next_substate, int extra) {
         if (c-&gt;rbuf != c-&gt;rcurr) {
             memmove(c-&gt;rbuf, c-&gt;rcurr, c-&gt;rbytes);
             c-&gt;rcurr = c-&gt;rbuf;
-            if (settings.verbose) {
+            if (settings.verbose &gt; 1) {
                 fprintf(stderr, &quot;%d: Repack input buffer\n&quot;, c-&gt;sfd);
             }
         }
@@ -1619,7 +1619,7 @@ static void process_bin_update(conn *c) {
 
     vlen = c-&gt;binary_header.request.bodylen - (nkey + c-&gt;binary_header.request.extlen);
 
-    if (settings.verbose) {
+    if (settings.verbose &gt; 1) {
         int ii;
         if (c-&gt;cmd == PROTOCOL_BINARY_CMD_ADD) {
             fprintf(stderr, &quot;&lt;%d ADD &quot;, c-&gt;sfd);
@@ -1632,9 +1632,7 @@ static void process_bin_update(conn *c) {
             fprintf(stderr, &quot;%c&quot;, key[ii]);
         }
 
-        if (settings.verbose &gt; 1) {
-            fprintf(stderr, &quot; Value len is %d&quot;, vlen);
-        }
+        fprintf(stderr, &quot; Value len is %d&quot;, vlen);
         fprintf(stderr, &quot;\n&quot;);
     }
 
@@ -1781,7 +1779,7 @@ static void process_bin_delete(conn *c) {
 
     assert(c != NULL);
 
-    if (settings.verbose) {
+    if (settings.verbose &gt; 1) {
         fprintf(stderr, &quot;Deleting %s\n&quot;, key);
     }
 
@@ -2834,7 +2832,7 @@ static int try_read_command(conn *c) {
             c-&gt;protocol = ascii_prot;
         }
 
-        if (settings.verbose) {
+        if (settings.verbose &gt; 1) {
             fprintf(stderr, &quot;%d: Client using the %s protocol\n&quot;, c-&gt;sfd,
                     prot_text(c-&gt;protocol));
         }
@@ -2851,7 +2849,7 @@ static int try_read_command(conn *c) {
                 /* must realign input buffer */
                 memmove(c-&gt;rbuf, c-&gt;rcurr, c-&gt;rbytes);
                 c-&gt;rcurr = c-&gt;rbuf;
-                if (settings.verbose) {
+                if (settings.verbose &gt; 1) {
                     fprintf(stderr, &quot;%d: Realign input buffer\n&quot;, c-&gt;sfd);
                 }
             }</diff>
      <filename>memcached.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fcdf315b89d6407f80725493081fe1f52d1ca392</id>
    </parent>
  </parents>
  <author>
    <name>dormando</name>
    <email>dormando@rydia.net</email>
  </author>
  <url>http://github.com/dustin/memcached/commit/783da601f99ba608273350d8566c43ab34a3af97</url>
  <id>783da601f99ba608273350d8566c43ab34a3af97</id>
  <committed-date>2009-10-07T19:19:14-07:00</committed-date>
  <authored-date>2009-10-07T18:02:33-07:00</authored-date>
  <message>Fix for issue 93 (binary verbosity)

-v under ascii mode printed startup messages and errors
-v under binary mode printed almost everything

now they're more or less the same, unless I missed one.</message>
  <tree>488d31b94249bfabd509e0d11e56092bcf9672cd</tree>
  <committer>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </committer>
</commit>
