disable werkzeug connection log
This commit is contained in:
parent
5549a5a7de
commit
0c7a4e44f9
11
README.md
11
README.md
@ -21,7 +21,7 @@ change without any backwards compatibility. Just saying.
|
|||||||
Features
|
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
|
* SQLite backend, Disqus import
|
||||||
* client-side JS (currently 61kb minified, 21kb gzipped)
|
* client-side JS (currently 61kb minified, 21kb gzipped)
|
||||||
* I18N, available in german and english (also fallback)
|
* I18N, available in german and english (also fallback)
|
||||||
@ -38,9 +38,6 @@ Roadmap
|
|||||||
Installation
|
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
|
- Python 2.6, 2.7 or 3.3
|
||||||
- easy_install or pip
|
- easy_install or pip
|
||||||
|
|
||||||
@ -101,9 +98,9 @@ Now, assuming you have your isso instance running on a different URL, such as
|
|||||||
[general]
|
[general]
|
||||||
host = http://example.tld/
|
host = http://example.tld/
|
||||||
~> isso -c example.cfg run
|
~> isso -c example.cfg run
|
||||||
* connecting to SMTP server [failed]
|
2013-10-30 09:32:48,369 WARNING: unable to connect to SMTP server
|
||||||
* connecting to HTTP server [ok]
|
2013-10-30 09:32:48,408 WARNING: connected to HTTP server
|
||||||
* Running on http://localhost:8080/
|
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
|
Make sure, Isso can connect to server that hosts your blog, otherwise you are
|
||||||
not able to post comments.
|
not able to post comments.
|
||||||
|
@ -61,6 +61,7 @@ from isso.core import ThreadedMixin, uWSGIMixin, Config
|
|||||||
from isso.utils import parse
|
from isso.utils import parse
|
||||||
from isso.views import comment, admin
|
from isso.views import comment, admin
|
||||||
|
|
||||||
|
logging.getLogger('werkzeug').setLevel(logging.ERROR)
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
format="%(asctime)s %(levelname)s: %(message)s")
|
format="%(asctime)s %(levelname)s: %(message)s")
|
||||||
|
@ -255,6 +255,7 @@ def activate(app, environ, request, auth):
|
|||||||
with app.lock:
|
with app.lock:
|
||||||
app.db.comments.activate(id)
|
app.db.comments.activate(id)
|
||||||
|
|
||||||
|
logger.info("comment %s activated" % id)
|
||||||
return Response("Yo", 200)
|
return Response("Yo", 200)
|
||||||
|
|
||||||
def delete(app, environ, request, auth):
|
def delete(app, environ, request, auth):
|
||||||
@ -267,6 +268,7 @@ def delete(app, environ, request, auth):
|
|||||||
with app.lock:
|
with app.lock:
|
||||||
app.db.comments.delete(id)
|
app.db.comments.delete(id)
|
||||||
|
|
||||||
|
logger.info("comment %s deleted" % id)
|
||||||
return Response("%s successfully removed" % id)
|
return Response("%s successfully removed" % id)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user