Lines Matching refs:log
42 log = logging.getLogger("remote-fw") variable
51 log.info("Receiving...")
61 log.info(f'size:{fsize}, filename:{fname}, MD5:{md5_tx_b}')
70 log.info(f"Done Receiving {len(total)}.")
76 log.error(f"Get exception {e} during FW transfer.")
84 log.error(f'MD5 mismatch: {md5_tx} vs. {md5_rx}')
99 log.error("Cannot find the FW file.")
104 log.info(f"{self.client_address[0]} wrote: {cmd}")
106 log.debug(f'load {action}')
113 log.error("incorrect load communitcation!")
118 log.info("Firmware well received. Ready to download.")
121 log.error("Receive firmware failed.")
130 log.info(f"{self.client_address[0]} wrote: {cmd}")
132 log.debug(f'monitor {action}')
137 log.error("incorrect monitor communitcation!")
139 log.info("wait for FW ready...")
146 log.info("FW is ready...")
175 log.info(f"retrun code: {ret}")
179 log.info("Client is disconnect.")
184 log.info("service complete.")
188 log.info("Wait for next service...")
194 log.info("Client is disconnect.")
205 log.info("Now checking client connection every %ds", poll_interval)
210 log.info("Terminating %s", child_desc)
218 log.error("SIGTERM failed on child %s", child_desc)
220 log.error("Sending %d SIGKILL", proc.pid)
223 log.error("Try: sudo pkill -9 -f %s", runner.load_cmd)
226 log.info("cannot kill proc due to it start with sudo...")
248 log.info(f"Current FW is {self.fw_file}")
272 log.info(f'run script: {self.script}')
285 log.error(f'Cannot find load cmd {self.load_cmd}.')
312 log.setLevel(logging.WARN)
314 log.setLevel(logging.DEBUG)
331 log.info(f"Serve on LOG PORT: {PORT_LOG} REQ PORT: {PORT_REQ}")
349 log.info("Req server start...")
351 log.info("Log server start...")