"Local datacenter is not specified" message is logged if user specifies it with the default execution profile
The warning introduced in is being logged if the user specifies the default LBP via execution profiles (by configuring the default profile). This is due to the fact that we are initializing and disposing the policies created by default in the Policies class even though they will never be used when different ones are set on the default profile.
We should fix this by removing this duplication (maybe setting Policies properties to the policies that were set on the default profile?) but a quick fix is also possible if we remove this from session init:
And remove this from session dispose: