Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1352

While swapping a node, log4net:ERROR Exception while rendering object of type is printed on SDKD console

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.4.5
    • None
    • None
    • None

    Description

      When swapping a node following error is printed on SDKD console.

      log4net:ERROR Exception while rendering object of type [Common.Logging.Factory.AbstractLogger+StringFormatFormattedMessage]
      System.FormatException: Input string was not in a correct format.
         at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
         at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
         at System.String.Format(IFormatProvider provider, String format, Object[] args)
         at Common.Logging.Factory.AbstractLogger.StringFormatFormattedMessage.ToString() in c:_oss\common-logging\src\Common.Logging.Portable\Logging\Factory\AbstractLogger.cs:line 125
         at log4net.ObjectRenderer.DefaultRenderer.RenderObject(RendererMap rendererMap, Object obj, TextWriter writer)
         at log4net.ObjectRenderer.RendererMap.FindAndRender(Object obj, TextWriter writer)

       

       

      It turned out following line from CouchbaseRequestExecuter.cs causes it.

      Log.Debug(JsonConvert.SerializeObject(bucketConfig));

      Looks like Log.Debug() does not like a string converted from Json object.

      By the way, this does not affect functionality.

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jaekwon.park Jae Park [X] (Inactive)
            jaekwon.park Jae Park [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty