Add logging to makeplain_oracle.py