Skip to content

Commit

Permalink
logging: logging format from R-Commons
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed Apr 1, 2019
1 parent 508d44c commit cbb6817
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reana_workflow_engine_serial/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

import click
from reana_commons.api_client import JobControllerAPIClient
from reana_commons.config import (REANA_ENGINE_LOG_LEVEL,
REANA_ENGINE_LOG_FORMAT)
from reana_commons.config import (REANA_LOG_LEVEL,
REANA_LOG_FORMAT)
from reana_commons.publisher import WorkflowStatusPublisher
from reana_commons.serial import serial_load
from reana_commons.utils import (build_caching_info_message,
Expand Down Expand Up @@ -99,8 +99,8 @@ def run_serial_workflow(workflow_uuid,
def initialize(workflow_uuid, workflow_workspace, operational_options):
"""Initialize engine."""
# configure the logger
logging.basicConfig(level=REANA_ENGINE_LOG_LEVEL,
format=REANA_ENGINE_LOG_FORMAT)
logging.basicConfig(level=REANA_LOG_LEVEL,
format=REANA_LOG_FORMAT)

# set cache on or off
if not operational_options:
Expand Down

0 comments on commit cbb6817

Please sign in to comment.