Commit 1c01d637 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Tests - Tools - Mock OSM NBI:

- Fix logger
- Fixed VIM Account resources
parent 21b4a158
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -19,9 +19,6 @@ from flask_restful import Resource
from hashlib import sha1


LOG_LEVEL = logging.DEBUG
logging.basicConfig(level=LOG_LEVEL, format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
logging.getLogger('werkzeug').setLevel(logging.INFO)
LOGGER = logging.getLogger(__name__)


+1 −1
Original line number Diff line number Diff line
@@ -27,9 +27,9 @@ STR_ENDPOINT = 'https://{:s}:{:s}{:s}'.format(str(BIND_ADDRESS), str(BIND_PORT),
LOG_LEVEL    = logging.DEBUG

logging.basicConfig(level=LOG_LEVEL, format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s")
logging.getLogger('werkzeug').setLevel(logging.WARNING)
LOGGER = logging.getLogger(__name__)

logging.getLogger('werkzeug').setLevel(logging.WARNING)

def log_request(logger : logging.Logger, response):
    timestamp = time.strftime('[%Y-%b-%d %H:%M]')