Polish logging in resource handling