Example #1
0
def wait():
    def is_credential(flag, flag_get):
        b_passwd = "_password" in flag
        b_key = (flag is not "cassandra_keyspace") and ("_key" in flag)
        b_mysql = (flag == "sql_connection" and "mysql:" in flag_get)

        return b_passwd or b_key or b_mysql

    LOG.debug(_('Full set of FLAGS:'))
    for flag in FLAGS:
        flag_get = FLAGS.get(flag, None)
        # hide flag contents from log if contains a password
        # should use secret flag when switch over to openstack-common
        if is_credential(flag, flag_get):
            LOG.debug(_('%(flag)s : FLAG SET ') % locals())
        else:
            LOG.debug('%(flag)s : %(flag_get)s' % locals())

    LOG.info(_('synaps %s is starting') % version.version_string())

    try:
        _launcher.wait()
    except KeyboardInterrupt:
        _launcher.stop()
    else:
        LOG.info("bye")
        _launcher.stop()
Example #2
0
def wait():
    def is_credential(flag, flag_get):
        b_passwd = "_password" in flag
        b_key = (flag is not "cassandra_keyspace") and ("_key" in flag)
        b_mysql = (flag == "sql_connection" and "mysql:" in flag_get)
        
        return b_passwd or b_key or b_mysql
        
    LOG.debug(_('Full set of FLAGS:'))
    for flag in FLAGS:
        flag_get = FLAGS.get(flag, None)
        # hide flag contents from log if contains a password
        # should use secret flag when switch over to openstack-common
        if is_credential(flag, flag_get):
            LOG.debug(_('%(flag)s : FLAG SET ') % locals())
        else:
            LOG.debug('%(flag)s : %(flag_get)s' % locals())

    LOG.info(_('synaps %s is starting') % version.version_string())

    try:
        _launcher.wait()
    except KeyboardInterrupt:
        _launcher.stop()
    else:
        LOG.info("bye")
        _launcher.stop()
Example #3
0
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'synaps'
copyright = u'2012-present, Samsung SDS'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
from synaps import version as synaps_version
#import synaps.version
# The full version, including alpha/beta/rc tags.
release = synaps_version.version_string()
# The short X.Y version.
version = synaps_version.canonical_version_string()

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of documents that shouldn't be included in the build.
#unused_docs = []