Fixed logging in paymentlib.