Commit 6ff759ff authored by Vitali Stupin's avatar Vitali Stupin

Rename module

parent deb3decf
#!/usr/bin/env python3
"""This is a module for X-Road Central Server member API.
"""This is a module for X-Road Central Server API.
This module allows adding new members to the X-Road Central Server.
This module allows:
* adding new members to the X-Road Central Server.
"""
import logging
......@@ -12,7 +13,7 @@ from flask import request, jsonify
from flask_restful import Resource
DB_CONF_FILE = '/etc/xroad/db.properties'
LOGGER = logging.getLogger('member')
LOGGER = logging.getLogger('csapi')
def get_db_conf():
......
......@@ -3,13 +3,13 @@
import logging
from flask import Flask
from flask_restful import Api
from member import MemberApi
from csapi import MemberApi
handler = logging.FileHandler('/var/log/xroad/csapi.log')
handler.setFormatter(logging.Formatter('%(asctime)s - %(process)d - %(levelname)s: %(message)s'))
# Member module logger
logger_m = logging.getLogger('member')
# CS API module logger
logger_m = logging.getLogger('csapi')
logger_m.setLevel(logging.INFO)
logger_m.addHandler(handler)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment