Talk:HelloMesh
Jump to navigation
Jump to search
I see now that it says I need to have logger debugging set but I didn't notice that at first.
So when I tried to use this activity to understand the mesh networking, but nothing was showing up in the Log Viewer. I fixed this by adding a .setLevel() call after the .getLogger() calls. For example:
self._logger = logging.getLogger('hellomesh-activity')
self._logger.setLevel(logging.DEBUG) # added this line two places in the code
Then the Log Viewer would show the logs. Although setting debugging would work too I think it makes sense to put the calls directly in the activity since the activity's only purpose is to show the logs. Anyway, something to think about. ;)