From 7fdeb5856d6f64df5685d65e2dbeaf4642835325 Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Sun, 20 Sep 2015 11:43:39 +0200
Subject: [PATCH] Add methods to logging

---
 src/cutecoin/core/config.py   | 2 +-
 src/cutecoin/core/net/node.py | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/cutecoin/core/config.py b/src/cutecoin/core/config.py
index d05225ba..bd344689 100644
--- a/src/cutecoin/core/config.py
+++ b/src/cutecoin/core/config.py
@@ -42,7 +42,7 @@ def parse_arguments(argv):
     (options, args) = parser.parse_args(argv)
 
     if options.debug:
-        logging.basicConfig(format='%(levelname)s:%(module)s:%(message)s',
+        logging.basicConfig(format='%(levelname)s:%(module)s:%(funcName)s:%(message)s',
             level=logging.DEBUG)
     elif options.verbose:
         logging.basicConfig(format='%(levelname)s:%(message)s',
diff --git a/src/cutecoin/core/net/node.py b/src/cutecoin/core/net/node.py
index ec270c25..c1b001ed 100644
--- a/src/cutecoin/core/net/node.py
+++ b/src/cutecoin/core/net/node.py
@@ -286,7 +286,6 @@ class Node(QObject):
         """
         Refresh the blocks of this node
         """
-        logging.debug("Refresh block")
         conn_handler = self.endpoint.conn_handler()
 
         logging.debug("Requesting {0}".format(conn_handler))
@@ -318,7 +317,6 @@ class Node(QObject):
         """
         Refresh basic information (pubkey and currency)
         """
-        logging.debug("Refresh info")
         conn_handler = self.endpoint.conn_handler()
 
         try:
@@ -356,7 +354,6 @@ class Node(QObject):
         """
         Refresh the summary of this node
         """
-        logging.debug("Refresh summary")
         conn_handler = self.endpoint.conn_handler()
 
         try:
@@ -384,7 +381,6 @@ class Node(QObject):
         """
         Refresh the node UID
         """
-        logging.debug("Refresh uid")
         conn_handler = self.endpoint.conn_handler()
         try:
             data = yield from bma.wot.Lookup(conn_handler, self.pubkey).get()
@@ -420,7 +416,6 @@ class Node(QObject):
         """
         Refresh the list of peers knew by this node
         """
-        logging.debug("Refresh peers")
         conn_handler = self.endpoint.conn_handler()
 
         try:
-- 
GitLab