BS-6849: clean code trying to understand it to begin the feature
BS-6849: Provide more logs on exception: ThreadId, username, hostname,
tenantId and more logs on API call