On an integral involving the digamma function