From 0c7a4e44f910f89d0eae3c9e1ae104129ac9c638 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 30 Oct 2013 10:06:09 +0100 Subject: [PATCH] disable werkzeug connection log --- README.md | 11 ++++------- isso/__init__.py | 1 + isso/views/comment.py | 2 ++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 16903ab..8c09df7 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ change without any backwards compatibility. Just saying. Features -------- -* [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) comments +* [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) comments written in Markdown * SQLite backend, Disqus import * client-side JS (currently 61kb minified, 21kb gzipped) * I18N, available in german and english (also fallback) @@ -38,9 +38,6 @@ Roadmap Installation ------------ -Note, there is currently no PyPi release, but I'll upload a snapshot -infrequently. Nevertheless, here are the requirements: - - Python 2.6, 2.7 or 3.3 - easy_install or pip @@ -101,9 +98,9 @@ Now, assuming you have your isso instance running on a different URL, such as [general] host = http://example.tld/ ~> isso -c example.cfg run - * connecting to SMTP server [failed] - * connecting to HTTP server [ok] - * Running on http://localhost:8080/ + 2013-10-30 09:32:48,369 WARNING: unable to connect to SMTP server + 2013-10-30 09:32:48,408 WARNING: connected to HTTP server + 2013-10-30 09:32:48,409 INFO: * Running on http://localhost:8080/ Make sure, Isso can connect to server that hosts your blog, otherwise you are not able to post comments. diff --git a/isso/__init__.py b/isso/__init__.py index c71a761..4f683c5 100644 --- a/isso/__init__.py +++ b/isso/__init__.py @@ -61,6 +61,7 @@ from isso.core import ThreadedMixin, uWSGIMixin, Config from isso.utils import parse from isso.views import comment, admin +logging.getLogger('werkzeug').setLevel(logging.ERROR) logging.basicConfig( level=logging.INFO, format="%(asctime)s %(levelname)s: %(message)s") diff --git a/isso/views/comment.py b/isso/views/comment.py index d8187ad..f770b44 100644 --- a/isso/views/comment.py +++ b/isso/views/comment.py @@ -255,6 +255,7 @@ def activate(app, environ, request, auth): with app.lock: app.db.comments.activate(id) + logger.info("comment %s activated" % id) return Response("Yo", 200) def delete(app, environ, request, auth): @@ -267,6 +268,7 @@ def delete(app, environ, request, auth): with app.lock: app.db.comments.delete(id) + logger.info("comment %s deleted" % id) return Response("%s successfully removed" % id)