add logging to digits_oracle.py