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

Add methods to logging

parent 34674549
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ def parse_arguments(argv): ...@@ -42,7 +42,7 @@ def parse_arguments(argv):
(options, args) = parser.parse_args(argv) (options, args) = parser.parse_args(argv)
if options.debug: 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) level=logging.DEBUG)
elif options.verbose: elif options.verbose:
logging.basicConfig(format='%(levelname)s:%(message)s', logging.basicConfig(format='%(levelname)s:%(message)s',
......
...@@ -286,7 +286,6 @@ class Node(QObject): ...@@ -286,7 +286,6 @@ 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))
...@@ -318,7 +317,6 @@ class Node(QObject): ...@@ -318,7 +317,6 @@ 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:
...@@ -356,7 +354,6 @@ class Node(QObject): ...@@ -356,7 +354,6 @@ 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:
...@@ -384,7 +381,6 @@ class Node(QObject): ...@@ -384,7 +381,6 @@ 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()
...@@ -420,7 +416,6 @@ class Node(QObject): ...@@ -420,7 +416,6 @@ 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