Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1554

Mention to_json in logging examples in tutorial

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.19.0
    • Affects Version/s: None
    • Component/s: Docs
    • Labels:
    • Fully Compatible

      The default inspection of command which is a bson document gets truncated in the middle, which is a problem when logging. A workaround is to use to_json to obtain a full rendering.

      Applies to the code examples in https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-monitoring/.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: