Closed sherryzhang0365 closed 3 months ago
Name: uiautomator2 Version: 2.16.22
I am using uiautomator to control my device, there will be too many log messages. I even cannot get the useful messages I needed. It's printing almost every 2 seconds!
How to disable uiautomator2 log message?
Thank you.
023-03-15 11:00:07,142 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:00:09,192 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:11,241 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:13,288 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:15,336 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:17,391 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:19,450 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:21,496 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:23,553 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:25,605 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:27,655 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:29,702 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:00:31,748 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:33,793 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:35,840 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:00:37,898 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:39,961 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:00:42,006 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:44,053 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:46,101 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:48,145 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:50,210 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:52,294 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:54,347 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:00:56,394 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:58,436 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:00,483 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:02,533 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:04,576 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:01:06,626 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:08,685 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:10,730 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:12,775 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:14,822 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:16,879 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:18,923 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:20,986 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:23,031 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:01:25,080 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:27,126 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:29,176 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:31,219 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:33,262 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:35,304 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:37,353 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:39,400 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:41,449 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:01:43,500 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 686 2023-03-15 11:01:45,542 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:47,590 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:49,637 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687
uiautomator2.logger.disabled = True
Name: uiautomator2 Version: 2.16.22
I am using uiautomator to control my device, there will be too many log messages. I even cannot get the useful messages I needed. It's printing almost every 2 seconds!
How to disable uiautomator2 log message?
Thank you.
023-03-15 11:00:07,142 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:00:09,192 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:11,241 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:13,288 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:15,336 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:17,391 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:19,450 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:21,496 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:23,553 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:25,605 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:27,655 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:29,702 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:00:31,748 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:33,793 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:35,840 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:00:37,898 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:39,961 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:00:42,006 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:44,053 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:46,101 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:48,145 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:50,210 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:00:52,294 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:54,347 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:00:56,394 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:00:58,436 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:00,483 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:02,533 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:04,576 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:01:06,626 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:08,685 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:10,730 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:12,775 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:14,822 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:16,879 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:18,923 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:20,986 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:23,031 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:01:25,080 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:27,126 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:29,176 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:31,219 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:33,262 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:35,304 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:37,353 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:39,400 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 688 2023-03-15 11:01:41,449 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687 2023-03-15 11:01:43,500 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 686 2023-03-15 11:01:45,542 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 689 2023-03-15 11:01:47,590 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 690 2023-03-15 11:01:49,637 [DEBUG] urllib3.connectionpool: http://127.0.0.1:46159 "POST /jsonrpc/0 HTTP/1.1" 200 687