b773a18ed8
This will allow us to reimplement the logs data model against a non-database system in the near future
20 lines
467 B
Python
20 lines
467 B
Python
import os
|
|
import logging
|
|
|
|
from data.logs_model.table_logs_model import table_logs_model
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
class LogsModelProxy(object):
|
|
def __init__(self):
|
|
self._model = table_logs_model
|
|
|
|
def __getattr__(self, attr):
|
|
return getattr(self._model, attr)
|
|
|
|
|
|
logs_model = LogsModelProxy()
|
|
logger.info('===============================')
|
|
logger.info('Using logs model `%s`', logs_model._model)
|
|
logger.info('===============================')
|