title: Either log or rethrow this exception
body: <p>Possible duplicate of <a href="https://stackoverflow.com/q/28122271/513413">Sonar complaining about logging and rethrowing the exception</a>.</p>
  
  <p>This is my code in a class:</p>
  
  <pre><code>try
      {
          this.processDeepLinkData(data);
      }
      catch (final Exception e)
      {
          // Error while parsing data
          // Nothing we can do
          Logger.error(TAG, "Exception thrown on processDeepLinkData. Msg: " + e.getMessage());
      }
  </code></pre>
  
  <p>and my Logger class:</p>
  
  <pre><code>    import android.content.Context;
      import android.util.Log;
      import com.crashlytics.android.Crashlytics;
  
      public final class Logger
      {
          /**
           * Convenience method.
           *
           * @see Logger#log(String, String)
           */
          public static void error(final String tag, final String msg)
          {
              if (Logger.DEBUG)
              {
                  Log.e(tag, "" + msg);
              }
              else
              {
                  Logger.log(tag, "" + msg);
              }
          }
  
          private static void log(final String tag, final String msg)
          {
              Crashlytics.log(tag + ": " + msg);
          }
  }
  </code></pre>
  
  <p>Sonar is pointing to <code>catch (final Exception e)</code> and says <code>Either log or rethrow this exception</code>. What do you think?  </p>