Skip to content

Commit

Permalink
Add email error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrichman committed Dec 27, 2012
1 parent 846f5d9 commit 20a677f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions habitat.yml
@@ -1,2 +1,8 @@
couch_uri: "http://localhost:5984"
couch_db: habitat
log_levels:
stderr: NONE
file: NONE
email: NONE
calendar:
log_file:
3 changes: 2 additions & 1 deletion habitat_calendar/cal.py
Expand Up @@ -2,13 +2,14 @@
import datetime
import icalendar
import pytz
from habitat.utils.startup import load_config
from habitat.utils.startup import load_config, setup_logging
from flask import Flask, Response
app = Flask(__name__)

# N.B.: Searches working directory since it won't be specified in argv.
# Configure uwsgi appropriately.
config = load_config()
setup_logging(config, "calendar")
couch_settings = {"couch_uri": config["couch_uri"],
"couch_db": config["couch_db"]}

Expand Down

0 comments on commit 20a677f

Please sign in to comment.