Browse Source

Integrate logger

unifiedWindowUI
Luke Murphy 4 years ago
parent
commit
d8440d69ed
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 5
      dropship.py

5
dropship.py

@ -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…
Cancel
Save