hanzhenbjm
hanzhenbjm
`class TestLog(json_logging.JSONLogWebFormatter): def _format_log_object(self, record, request_util): json_log_object = super(TestLog, self)._format_log_object(record, request_util) json_log_object.update({ "message": _sanitize_log_msg(record), "lineno": record.lineno, "TraceId": request_util.get_correlation_id(within_formatter=True), "log_type": "desc" }) return json_log_object` use flask web framework, Failed to customize...
r2s刷固件
下载了2023-01-20的[r2s.img.gz](https://github.com/stupidloud/nanopi-openwrt/releases/download/2023-01-20/r2s.img.gz) 但是使用balenaEtcher写卡的时候报错。 
```python def start_consuming(self): while True: try: if self.connection is None or self.connection.is_closed: self.connect() self.channel.basic_qos(prefetch_count=1) self.channel.basic_consume(queue=self.queue_name, on_message_callback=self.on_message) self.channel.start_consuming() except pika.exceptions.AMQPConnectionError as e: self.connection = None time.sleep(5) except pika.exceptions.AMQPError as e: self.stop_consuming()...
Hello, I have a question, How do I add two filters at once ```python def serialize(record): subset = { "log_type": "desc", "module": str(record["module"]), "logger": str(record["module"]), "process": record["process"].id, "processName": record["process"].name, "thread":...
If the question is concise and probably has a short answer, asking it in [community Slack](https://join.slack.com/t/oceanbase/shared_invite/zt-1e25oz3ol-lJ6YNqPHaKwY_mhhioyEuw) **Question** python调用OB中的存储过程无法实现,文档中也未见demo,请问现在支持python调用基于oracle的ob的存储过程吗? **Environment** python3.12、OceanBase 4.2.1.7、jaydebeapi 1.2.3 - OS Version and CPU Arch(`uname -a`): -...
I used hypercorn + sanic to use the http2 function, but after a while an error occurred: ```python Traceback (most recent call last): File "/usr/local/python3.12.0/lib/python3.12/site-packages/hypercorn/asyncio/run.py", line 110, in _server_callback await...