[gnome-keysign: 53/65] bluetoothoffer: Configure Logging
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 53/65] bluetoothoffer: Configure Logging
- Date: Tue, 3 Oct 2017 11:41:20 +0000 (UTC)
commit 1a00a4118d1f14e6c47f82679161bca7fe0305da
Author: Tobias Mueller <muelli cryptobitch de>
Date: Wed Sep 13 18:53:11 2017 +0200
bluetoothoffer: Configure Logging
We probably want to see log messages, so let's configure the logging
module accordingly.
keysign/bluetoothoffer.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/keysign/bluetoothoffer.py b/keysign/bluetoothoffer.py
index c1858a7..3c1134f 100644
--- a/keysign/bluetoothoffer.py
+++ b/keysign/bluetoothoffer.py
@@ -90,6 +90,7 @@ class BluetoothOffer:
# Number of unaccepted connections that the system will allow before refusing new connections
backlog = 1
self.server_socket.listen(backlog)
+ log.info("sockname: %r", self.server_socket.getsockname())
port = self.server_socket.getsockname()[1]
log.info("BT Code: %s %s", code, port)
bt_data = "BT={0};PT={1}".format(code, port)
@@ -142,4 +143,5 @@ def main(args):
if __name__ == "__main__":
import sys
+ logging.basicConfig(level=logging.DEBUG)
main(sys.argv[1:])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]