Mention to_json in logging examples in tutorial

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: