Mercurial > libervia-backend
comparison sat/core/xmpp.py @ 3059:aa728dc7b0ce
core: `history is skipped as requested` log message is now at debug level
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 18 Oct 2019 14:36:46 +0200 |
parents | 691283719bb2 |
children | c3ce8c997fdf |
comparison
equal
deleted
inserted
replaced
3058:0408df45ebe7 | 3059:aa728dc7b0ce |
---|---|
1083 raise failure.Failure(exceptions.CancelError("Cancelled empty message")) | 1083 raise failure.Failure(exceptions.CancelError("Cancelled empty message")) |
1084 return data | 1084 return data |
1085 | 1085 |
1086 def addToHistory(self, data): | 1086 def addToHistory(self, data): |
1087 if data.pop("history", None) == C.HISTORY_SKIP: | 1087 if data.pop("history", None) == C.HISTORY_SKIP: |
1088 log.info("history is skipped as requested") | 1088 log.debug("history is skipped as requested") |
1089 data["extra"]["history"] = C.HISTORY_SKIP | 1089 data["extra"]["history"] = C.HISTORY_SKIP |
1090 else: | 1090 else: |
1091 if data["message"] or data["subject"]: # we need a message to store | 1091 if data["message"] or data["subject"]: # we need a message to store |
1092 return self.host.memory.addToHistory(self.parent, data) | 1092 return self.host.memory.addToHistory(self.parent, data) |
1093 else: | 1093 else: |