Integrate logger

This commit is contained in:
Luke Murphy 2020-07-22 17:26:59 +02:00
parent 65f7e2b0ed
commit d8440d69ed
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -1,6 +1,8 @@
"""Magic-Wormhole bundled up inside a PyGtk GUI."""
import asyncio
import logging
import os
import asyncio_glib
import gi
@ -13,6 +15,9 @@ from gi.repository import GLib as glib
from gi.repository import Gtk as gtk
asyncio.set_event_loop_policy(asyncio_glib.GLibEventLoopPolicy())
logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO"))
log = logging.getLogger("dropship")
class DropShip: