Json schemas added into collector python package
MANIFEST.in used for include json schemas. Keyword 'anonymous' removed from collector package description. Creation of log directory added into logger intialization. Blueprint: send-anon-usage Closes-Bug: 1395703 Change-Id: I4bce4db8484d74103b177e9063e123c319c90d65
This commit is contained in:
parent
79516ab7d4
commit
59d0b5eaa4
|
@ -0,0 +1,3 @@
|
|||
include *.txt
|
||||
recursive-include collector/api/schemas *.json
|
||||
include collector/test/logs
|
|
@ -15,6 +15,7 @@
|
|||
from logging import FileHandler
|
||||
from logging import Formatter
|
||||
from logging.handlers import RotatingFileHandler
|
||||
import os
|
||||
|
||||
from collector.api.app import app
|
||||
|
||||
|
@ -42,4 +43,7 @@ def get_formatter():
|
|||
|
||||
|
||||
def init_logger():
|
||||
log_dir = os.path.dirname(app.config.get('LOG_FILE'))
|
||||
if not os.path.exists(log_dir):
|
||||
os.mkdir(log_dir, 0o750)
|
||||
app.logger.addHandler(get_file_handler())
|
||||
|
|
|
@ -33,8 +33,8 @@ def parse_requirements_txt():
|
|||
setup(
|
||||
name='collector',
|
||||
version='0.0.1',
|
||||
description="Service of collecting anonymous statistics",
|
||||
long_description="""Service of collecting anonymous statistics""",
|
||||
description="Service of collecting usage statistics",
|
||||
long_description="""Service of collecting usage statistics""",
|
||||
license="http://www.apache.org/licenses/LICENSE-2.0",
|
||||
classifiers=[
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
|
|
Loading…
Reference in New Issue