显示系统信息

def _show_info(app):
    """
        显示系统信息
    """
    print ("Server start on port {0} (processes: {1}) ...".format(app.port, app.processes))
    print ("Start time: {0}".format(datetime.now().isoformat(" ")))

    print

    print ("Parameters:")
    for k in sorted(dir(__conf__)):
        if k.startswith("__"): continue
        print ("  {0:<20} : {1}".format(k, getattr(__conf__, k)))

    print

    print ("Handlers:")
    handlers = sorted(app.handlers, key = lambda h: h[0])
    pprint(handlers)

    print