use motor to write request log to mongodb