import logging
import logging.handlers

DEBUG = True

LOG_FORMAT = '[%(asctime)s: %(levelname)s] %(message)s'
if DEBUG:
    LOG_LEVEL = logging.DEBUG
else:
    LOG_LEVEL = logging.WARN
LOG_COLOR = True

PORT = 8000

TORNADO_SETTINGS = {}
TORNADO_SETTINGS['debug'] = DEBUG
TORNADO_SETTINGS['xsrf_cookies'] = False
TORNADO_SETTINGS['port'] = PORT

if DEBUG:
    LOG_LEVEL = logging.DEBUG
else:
    LOG_LEVEL = logging.INFO
USE_SYSLOG = False

LOGGING_CONFIG = 'astral.conf.logconfig.initialize_logging'
LOGGING = {
   'loggers': {
        'astral': {},
    },
    'syslog_facility': logging.handlers.SysLogHandler.LOG_LOCAL0,
    'syslog_tag': "astral",
    'log_level': LOG_LEVEL,
    'use_syslog': USE_SYSLOG,
}

ASTRAL_WEBSERVER = "http://localhost:4567"
BOOTSTRAP_NODES = [
]

DOWNSTREAM_CHECK_LIMIT = 1024 * 1024 * 2
UPSTREAM_CHECK_LIMIT = 1024 * 256

OUTGOING_STREAM_LIMIT = 2

@@ -706,16 +706,30 @@
 LOG,%0A%7D%0A%0A
+if DEBUG:%0A    
 ASTRAL_W
@@ -763,16 +763,79 @@
 t:4567%22%0A
+else:%0A    ASTRAL_WEBSERVER = %22http://astral-video.heroku.com%22%0A%0A
 BOOTSTRA

Use Heroku instance of webapp if not in DEBUG mode.