Commits

Kostas Papadimitriou  committed d52d523 Draft

Example settings to enable dogslow as middleware in synnefo deployments

  • Participants
  • Parent commits 6aa6ef8
  • Branches debian

Comments (0)

Files changed (8)

File EXAMPLE.synnefo

+# Enabling dogslow in synnefo settings
+# Apply the following settings in your local settings file 
+# (e.g. /etc/synnefo/99-local.conf)
+
+# Sample settings for dogslow in /etc/synnefo/99-local.conf
+
+DOGSLOW = True
+
+# !!! Requires valid django email settings (EMAIL_HOST/EMAIL_PORT etc.)
+DOGSLOW_EMAIL_TO = 'kpap@grnet,gr'
+DOGSLOW_EMAIL_FROM = 'no-reply@grnet.gr'
+
+DOGSLOW_TIMER = 25
+
+# optionally you can create your own logger to log slow requests
+LOGGING_SETUP['handlers']['dogslowfile'] = {
+  'filename': '/tmp/testlog-rotated.log',
+  'when': 'midnight',
+  'class': 'logging.handlers.TimedRotatingFileHandler'
+
+}
+LOGGING_SETUP['handlers']['file']['filename'] = '/tmp/testlog.log'
+LOGGING_SETUP['loggers']['dogslow'] = {
+    'level': 'INFO',
+    'handlers': ['dogslowfile']
+}
+DOGSLOW_LOGGER = 'dogslow'
+DOGSLOW_LOG_LEVEL = 'WARNING'
+
+MIDDLEWARE_CLASSES.insert(0, "dogslow.WatchdogMiddleware")
+

File debian/changelog

+dogslow (0.9.2a2-1) stable; urgency=low
+
+  * New upstream release
+
+ -- Kostas Papadimitriou <kpap@grnet.gr>  Fri, 04 May 2012 14:34:47 +0200
+

File debian/compat

+8

File debian/control

+Source: dogslow
+Maintainer: GRNet development team <synnefo@grnet.gr>
+Section: python
+Priority: optional
+Build-Depends:
+ debhelper (>= 7.0.50~),
+ python-all (>= 2.6.6-3),
+ python-setuptools
+Standards-Version: 3.9.3
+X-Python-Version: >= 2.6
+Homepage: http://pypi.python.org/pypi/dogslow/
+Vcs-Browser: https://bitbucket.org/evzijst/dogslow/src
+
+Package: python-django-dogslow
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python:Depends}
+Recommends:
+ python-django
+Description: Dogslow is a Django request watchdog middleware class that logs tracebacks of slow requests.
+

File debian/copyright

+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: dogslow
+Upstream-Contact: Erik van Zijst <erik.van.zijst@gmail.com>
+Source: http://pypi.python.org/pypi/dogslow
+
+Files: *
+Copyright: 2011-2012, Erik van Zijst
+License: GPL
+README.rst

File debian/rules

+#!/usr/bin/make -f
+
+%:
+	dh $@ --with python2
+

File debian/source/format

+3.0 (quilt)