stop using resources when not logging