Integrate logger
This commit is contained in:
parent
65f7e2b0ed
commit
d8440d69ed
@ -1,6 +1,8 @@
|
|||||||
"""Magic-Wormhole bundled up inside a PyGtk GUI."""
|
"""Magic-Wormhole bundled up inside a PyGtk GUI."""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
import asyncio_glib
|
import asyncio_glib
|
||||||
import gi
|
import gi
|
||||||
@ -13,6 +15,9 @@ from gi.repository import GLib as glib
|
|||||||
from gi.repository import Gtk as gtk
|
from gi.repository import Gtk as gtk
|
||||||
|
|
||||||
asyncio.set_event_loop_policy(asyncio_glib.GLibEventLoopPolicy())
|
asyncio.set_event_loop_policy(asyncio_glib.GLibEventLoopPolicy())
|
||||||
|
logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO"))
|
||||||
|
|
||||||
|
log = logging.getLogger("dropship")
|
||||||
|
|
||||||
|
|
||||||
class DropShip:
|
class DropShip:
|
||||||
|
Loading…
Reference in New Issue
Block a user