From 0f0b5a02d777482e0011b3bc7276d410ee643ae8 Mon Sep 17 00:00:00 2001 From: Julien Fontaine Date: Thu, 20 Aug 2020 17:51:17 -0400 Subject: Add request IDs in command-executor log * Update gRPC interface to handle SubRequestID and Originator ID * Update command-executor log format to handle request IDs in the log statement * Add SubRequest ID and Originator ID in BP log statement Issue-ID: CCSDK-2687 Change-Id: If261bb0912df5800ed2fc65371c5ee784d6a45fb Signed-off-by: Julien Fontaine --- .../application/src/main/resources/logback.xml | 3 +- .../executor/ComponentRemotePythonExecutor.kt | 5 + .../core/BluePrintConstants.kt | 4 +- .../core/api/data/BlueprintRemoteProcessorData.kt | 5 + .../rest/service/RestLoggerService.kt | 9 ++ .../execution/RemoteScriptExecutionService.kt | 5 + .../src/main/python/command_executor_handler.py | 53 ++++++----- .../src/main/python/command_executor_server.py | 24 ++--- .../src/main/python/proto/CommandExecutor_pb2.py | 102 +++++++++++++-------- ms/command-executor/src/main/python/server.py | 7 +- ms/command-executor/src/main/python/utils.py | 15 ++- 11 files changed, 152 insertions(+), 80 deletions(-) (limited to 'ms') diff --git a/ms/blueprintsprocessor/application/src/main/resources/logback.xml b/ms/blueprintsprocessor/application/src/main/resources/logback.xml index aceea4327..b905b7da4 100644 --- a/ms/blueprintsprocessor/application/src/main/resources/logback.xml +++ b/ms/blueprintsprocessor/application/src/main/resources/logback.xml @@ -1,5 +1,6 @@