rbeckman-nextgen / test-mc2

0 stars 0 forks source link

Log out the key that is being retrieved from the deprecated MessageHeaders.get method #4311

Open rbeckman-nextgen opened 5 years ago

rbeckman-nextgen commented 5 years ago

com.mirth.connect.userutil.MessageHeaders#get is deprecated. It logs out a message stating > The get(key) method for retrieving Http headers is deprecated and will soon be removed. Please use getHeader(key) or getHeaderList(key) instead.

These calls are hard to track down for some usages. They would be easier to track down if this method also logged out what key was being requested.

I am attaching a patch with a suggestion.

Imported Issue. Original Details: Jira Issue Key: MIRTH-4457 Reporter: jbartels Created: 2019-09-19T13:48:54.000-0700