file_handler = logging.FileHandler(filename='/var/www/myapp/flaskerror.log')
file_handler.setLevel(logging.WARNING)
app.logger.addHandler(file_handler)
ConnectionFailure when connecting to MongoHQ URI via Flask-PyMongo on httpd