Skip to content

Commit

Permalink
Update some logging when running server command
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Oct 22, 2018
1 parent 4f34df9 commit 2681436
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/cli/server.py
@@ -1,13 +1,16 @@
# encoding: utf-8

import os
import logging

import click
from flask import Flask, current_app
from werkzeug.serving import run_simple

from ckan.cli import click_config_option

log = logging.getLogger(__name__)


@click.command(u'run', short_help=u'Start development server')
@click.help_option(u'-h', u'--help')
Expand All @@ -17,4 +20,5 @@
@click.pass_context
def run(ctx, host, port, reloader):
u'''Runs development server'''
log.info(u"Running server {0} on port {1}".format(host, port))
run_simple(host, port, ctx.obj.app, use_reloader=reloader, use_evalex=True)

0 comments on commit 2681436

Please sign in to comment.