class_docstr: Calls to :meth:`orion.core.io.database.AbstractDB.read_and_write`.
docstr: When logging.level is ERROR, there should be no logging.
docstr_tok: ["When","logging.level","is","ERROR",",","there","should","be","no","logging","."]
code: def test_logging_when_getting_file_lock(self, caplog, orion_db):
      """When logging.level is ERROR, there should be no logging."""
      logging.basicConfig(level=logging.INFO)
      caplog.clear()
      caplog.set_level(logging.ERROR)
      # any operation will trigger the lock.
      orion_db.read(
          "experiments",
          {"name": "supernaedo2", "metadata.user": "dendi"},
      )
  
      assert "acquired on orion_db.pkl.lock" not in caplog.text
  
imports: import logging
  import random
  import uuid
  from multiprocessing import Pool
  import pytest
  from filelock import FileLock, SoftFileLock, Timeout
  from orion.core.io.database import DatabaseTimeout, DuplicateKeyError
  from orion.core.io.database.ephemeraldb import EphemeralCollection
  from orion.core.io.database.pickleddb import PickledDB, _create_lock, find_unpickable_doc, find_unpickable_field, local_file_systems
  from .test_database import get_db
label_desc: Use image node_id 1 for calling the TestReadAndWrite obj's underlying member method code with example usage: obj.test_logging_when_getting_file_lock(caplog, orion_db) without return types