Logging ensure index for mongodb