(self)
return result["was"]
Get the database's current profiling level.

        Returns one of (:data:`~pymongo.OFF`,
        :data:`~pymongo.SLOW_ONLY`, :data:`~pymongo.ALL`).

        .. mongodoc:: profiling
Get the database's current profiling level.
Get the database s current profiling level .
def profiling_level(self):
        """Get the database's current profiling level.

        Returns one of (:data:`~pymongo.OFF`,
        :data:`~pymongo.SLOW_ONLY`, :data:`~pymongo.ALL`).

        .. mongodoc:: profiling
        """
        result = self.command("profile", -1)

        assert result["was"] >= 0 and result["was"] <= 2
        return result["was"]
def profiling_level ( self ) : result = self . command ( "profile" , - 1 ) assert result [ "was" ] >= 0 and result [ "was" ] <= 2 return result [ "was" ]