Skip to content
Snippets Groups Projects
Commit 32c3c7c0 authored by Robert Latta's avatar Robert Latta
Browse files

replaced log comments with annotation

parent 6d349956
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,8 @@ from inventory_provider.db.ims import IMS
from inventory_provider import environment
from inventory_provider.tasks.app import app
from inventory_provider.tasks.common import get_next_redis
from inventory_provider.tasks.worker import InventoryTask
from inventory_provider.tasks.worker import InventoryTask, \
log_task_entry_and_exit
environment.setup_logging()
......@@ -20,6 +21,7 @@ logger = logging.getLogger(__name__)
@app.task(base=InventoryTask, bind=True)
@log_task_entry_and_exit
def update_lg_routers_ims(self):
logger.debug('>>> update_lg_routers_ims')
......@@ -41,6 +43,7 @@ class OTRSFiles(IntFlag):
@app.task(base=InventoryTask, bind=True)
@log_task_entry_and_exit
def export_data_for_otrs(self, files_to_export=None):
if files_to_export:
files_to_export = OTRSFiles(files_to_export)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment