<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 06/17/2015 10:20 PM, Atin Mukherjee
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGkR8FOCHKEZqWYGSMBfX_+JPwRmXuzjRiFgFw=q7JOcDq5=AA@mail.gmail.com"
      type="cite">
      <p dir="ltr">Sent from one plus one<br>
        On Jun 17, 2015 10:10 PM, "Pranith Kumar Karampuri" &lt;<a
          moz-do-not-send="true" href="mailto:pkarampu@redhat.com">pkarampu@redhat.com</a>&gt;
        wrote:<br>
        &gt;<br>
        &gt;<br>
        &gt;<br>
        &gt; On 06/17/2015 09:28 PM, Ravishankar N wrote:<br>
        &gt;&gt;<br>
        &gt;&gt; Hello,<br>
        &gt;&gt;<br>
        &gt;&gt; I sent a patch [1] to print the backtrace generated by
        'gf_log_callingfn' (only) in a human-readable way. While it
        improves readability by printing every function of the backtrace
        in a separate line (which is how a backtrace *should* look), it
        violates the fact that every log in gluster gets logged in a
        single line. Does anyone see any problem with this? Especially
        sys-admins who might have scripts/ mechanisms to parse logs?
        Note that the patch affects only messages logged using
        gf_log_callingfn() and is avoids eyesore.<br>
        &gt;<br>
        &gt; Grepping logs will be difficult with this change. May be we
        can use something like:<br>
        &gt; sed 's/(--&gt;/\n(--&gt;/g' &lt;logfile.log&gt; to achieve
        the same?<br>
        It doesn't bother me too much if some changes are required in
        applying filters, you will need this change if you try to
        improve readability. Being a developer sometimes I get confused
        with this log, at least its not readable. I would like to see
        this change in (I am yet to review it though).<br>
      </p>
    </blockquote>
    Depends on the log size. Largest logfile I debugged from customers
    is &gt;20GB. Production logs are generally of the order of GBs.
    Readability hardly matters when things get to that size. You need to
    be able to process the logs and get useful information with least
    amount of work. With the message-id framework we are going towards
    this will be even more important to have the whole log in same line,
    so that we can grep using msg-id alone.<br>
    <br>
    Pranith<br>
    <blockquote
cite="mid:CAGkR8FOCHKEZqWYGSMBfX_+JPwRmXuzjRiFgFw=q7JOcDq5=AA@mail.gmail.com"
      type="cite">
      <p dir="ltr">
        &gt;<br>
        &gt; Pranith<br>
        &gt;<br>
        &gt;&gt;<br>
        &gt;&gt; Thanks,<br>
        &gt;&gt; Ravi<br>
        &gt;&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; [1] <a moz-do-not-send="true"
          href="http://review.gluster.org/#/c/11217/1">http://review.gluster.org/#/c/11217/1</a><br>
        &gt;&gt; _______________________________________________<br>
        &gt;&gt; Gluster-users mailing list<br>
        &gt;&gt; <a moz-do-not-send="true"
          href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
        &gt;&gt; <a moz-do-not-send="true"
          href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
        &gt;<br>
        &gt;<br>
        &gt; _______________________________________________<br>
        &gt; Gluster-users mailing list<br>
        &gt; <a moz-do-not-send="true"
          href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
        &gt; <a moz-do-not-send="true"
          href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
      </p>
    </blockquote>
    <br>
  </body>
</html>