Fix to get calling application identifier 69/9369/2
authoranupmarathe <anup.marathe@amdocs.com>
Wed, 30 Aug 2017 09:37:37 +0000 (15:07 +0530)
committeranupmarathe <anup.marathe@amdocs.com>
Wed, 30 Aug 2017 11:21:03 +0000 (16:51 +0530)
commit7868ed0487009cc7285a35d1bcd76f7cba6b9bdd
tree4bee423b1fea4a7a73bccdc3421857a2ef6f6bba
parent25c3c5974d80c0c3a799c9c701e1ae45e5d8e773
Fix to get calling application identifier

As per EELF logging guidelines, component can put a calling application
identifier or user name in MDC against key PartnerName. SO is setting
user name against key PartnerName in LogFilter. By having an identity of
calling application can assist in debugging. To achieve this SO will
check request header key X-FromAppId and set its value against MDC -
FromAppId.

Change-Id: Ib67c5e76fdf5567282200e17210ddb49cf9a57fb
Issue-ID: SO-99
Signed-off-by: anupmarathe <anup.marathe@amdocs.com>
common/src/main/java/org/openecomp/mso/logger/LogFilter.java
common/src/main/java/org/openecomp/mso/logger/MsoLogger.java