changeset 19:96269a017fa8

quieter logging about no-op patches Ignore-this: f966f80e298405c8ecc7c98025890003
author drewp@bigasterisk.com
date Fri, 04 Jan 2019 23:17:11 +0000
parents fc8fc22ba833
children 919c23ed90ec
files rdfdb/grapheditapi.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rdfdb/grapheditapi.py	Sun Oct 28 11:09:38 2018 +0000
+++ b/rdfdb/grapheditapi.py	Fri Jan 04 23:17:11 2019 +0000
@@ -30,7 +30,8 @@
 
     def patchObject(self, context, subject, predicate, newObject):
         p = self.getObjectPatch(context, subject, predicate, newObject)
-        log.debug("patchObject %r" % p.jsonRepr)
+        if not p.isNoop():
+            log.debug("patchObject %r" % p.jsonRepr)
         self.patch(p)
 
     def patchSubgraph(self, context, newGraph):