Skip to content
Snippets Groups Projects
Commit 34674549 authored by inso's avatar inso
Browse files

Move logs in node refreshing calls

parent e50ff45c
No related branches found
No related tags found
No related merge requests found
...@@ -274,15 +274,10 @@ class Node(QObject): ...@@ -274,15 +274,10 @@ class Node(QObject):
""" """
Refresh all data of this node Refresh all data of this node
""" """
logging.debug("Refresh block")
self.refresh_block() self.refresh_block()
logging.debug("Refresh info")
self.refresh_informations() self.refresh_informations()
logging.debug("Refresh uid")
self.refresh_uid() self.refresh_uid()
logging.debug("Refresh peers")
self.refresh_peers() self.refresh_peers()
logging.debug("Refresh summary")
self.refresh_summary() self.refresh_summary()
@asyncify @asyncify
...@@ -291,6 +286,7 @@ class Node(QObject): ...@@ -291,6 +286,7 @@ class Node(QObject):
""" """
Refresh the blocks of this node Refresh the blocks of this node
""" """
logging.debug("Refresh block")
conn_handler = self.endpoint.conn_handler() conn_handler = self.endpoint.conn_handler()
logging.debug("Requesting {0}".format(conn_handler)) logging.debug("Requesting {0}".format(conn_handler))
...@@ -322,6 +318,7 @@ class Node(QObject): ...@@ -322,6 +318,7 @@ class Node(QObject):
""" """
Refresh basic information (pubkey and currency) Refresh basic information (pubkey and currency)
""" """
logging.debug("Refresh info")
conn_handler = self.endpoint.conn_handler() conn_handler = self.endpoint.conn_handler()
try: try:
...@@ -359,6 +356,7 @@ class Node(QObject): ...@@ -359,6 +356,7 @@ class Node(QObject):
""" """
Refresh the summary of this node Refresh the summary of this node
""" """
logging.debug("Refresh summary")
conn_handler = self.endpoint.conn_handler() conn_handler = self.endpoint.conn_handler()
try: try:
...@@ -386,6 +384,7 @@ class Node(QObject): ...@@ -386,6 +384,7 @@ class Node(QObject):
""" """
Refresh the node UID Refresh the node UID
""" """
logging.debug("Refresh uid")
conn_handler = self.endpoint.conn_handler() conn_handler = self.endpoint.conn_handler()
try: try:
data = yield from bma.wot.Lookup(conn_handler, self.pubkey).get() data = yield from bma.wot.Lookup(conn_handler, self.pubkey).get()
...@@ -421,6 +420,7 @@ class Node(QObject): ...@@ -421,6 +420,7 @@ class Node(QObject):
""" """
Refresh the list of peers knew by this node Refresh the list of peers knew by this node
""" """
logging.debug("Refresh peers")
conn_handler = self.endpoint.conn_handler() conn_handler = self.endpoint.conn_handler()
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment