author | Denis Laxalde <denis.laxalde@logilab.fr> |
Wed, 29 Mar 2017 11:46:17 +0200 | |
branch | 3.25 |
changeset 12113 | 669aaed98678 |
parent 12112 | 0a54f49314f6 |
child 12114 | 40446d4e1ee2 |
--- a/cubicweb/hooks/logstats.py Wed Mar 29 11:45:19 2017 +0200 +++ b/cubicweb/hooks/logstats.py Wed Mar 29 11:46:17 2017 +0200 @@ -35,6 +35,8 @@ events = ('server_startup',) def __call__(self): + if not self.repo.has_scheduler(): + return interval = self.repo.config.get('logstat-interval', 0) if interval <= 0: return