mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
changes to logging and threading
This commit is contained in:
@ -21,7 +21,8 @@ class Display(View):
|
||||
self._canvas_next = None
|
||||
self._render_thread_instance = threading.Thread(
|
||||
target=self._render_thread,
|
||||
daemon=True
|
||||
daemon=True,
|
||||
name="Renderer"
|
||||
)
|
||||
self._render_thread_instance.start()
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
import _thread
|
||||
#import _thread
|
||||
import threading
|
||||
import secrets
|
||||
import logging
|
||||
import os
|
||||
@ -25,7 +26,9 @@ class Server:
|
||||
self._origin = self._config['origin']
|
||||
|
||||
if self._enabled:
|
||||
_thread.start_new_thread(self._http_serve, ())
|
||||
#_thread.start_new_thread(self._http_serve, ())
|
||||
logging.info("Starting WebServer thread")
|
||||
self._thread = threading.Thread(target=self._http_serve, name="WebServer").start()
|
||||
|
||||
def _http_serve(self):
|
||||
if self._address is not None:
|
||||
|
Reference in New Issue
Block a user