def report_configuration():
 config = odoo.tools.config
 _logger.info('Odoo version %s', __version__)
 if os.path.isfile(config.rcfile):
  _logger.info(('Using configuration file at ' + config.rcfile))
 _logger.info('addons paths: %s', odoo.modules.module.ad_paths)
 host = (config['db_host'] or os.environ.get('PGHOST', 'default'))
 port = (config['db_port'] or os.environ.get('PGPORT', 'default'))
 user = (config['db_user'] or os.environ.get('PGUSER', 'default'))
 _logger.info('database: %s@%s:%s', user, host, port)

def report_configuration ( ) : config = odoo . tools . config _logger . info ( 'Odoo version %s' , __version__ ) if os . path . isfile ( config . rcfile ) : _logger . info ( ( 'Using configuration file at ' + config . rcfile ) ) _logger . info ( 'addons paths: %s' , odoo . modules . module . ad_paths ) host = ( config [ 'db_host' ] or os . environ . get ( 'PGHOST' , 'default' ) ) port = ( config [ 'db_port' ] or os . environ . get ( 'PGPORT' , 'default' ) ) user = ( config [ 'db_user' ] or os . environ . get ( 'PGUSER' , 'default' ) ) _logger . info ( 'database: %s@%s:%s' , user , host , port )
log the server version and some configuration values .