if e.errno != 17:
raise
- logging.basicConfig(level=logging.DEBUG, filename=constants._user_logpath_)
+ logFormat = '(%(asctime)s) %(levelname)-5s %(threadName)s.%(name)s: %(message)s'
+ logging.basicConfig(level=logging.DEBUG, filename=constants._user_logpath_, format=logFormat)
_moduleLogger.info("%s %s-%s" % (constants.__app_name__, constants.__version__, constants.__build__))
_moduleLogger.info("OS: %s" % (os.uname()[0], ))
_moduleLogger.info("Kernel: %s (%s) for %s" % os.uname()[2:])
"""
@bug For some reason, the back/close button doesn't work when I nest multiple levels
-@bug When switching from conference to magazines, it randomly jumps around and duplicates windows
@todo Re-use windows for better performance
@todo Make radio program updates only happen when the app has focus to reduce CPU wakes
@misc.log_exception(_moduleLogger)
def __on_destroy(self, widget):
+ _moduleLogger.info("Destroy: %r (%s to clean up)" % (self, len(self.__disconnectPool)))
for widget, id in self.__disconnectPool:
widget.disconnect(id)
del self.__disconnectPool[:]
self._layout.pack_start(self._errorBanner.toplevel, False, True)
self._window = gtk.Window()
- go_utils.AutoSignal.__init__(self, self.window)
self._window.add(self._layout)
self._window = hildonize.hildonize_window(self._app, self._window)
+ go_utils.AutoSignal.__init__(self, self.window)
self._window.set_icon(self._store.get_pixbuf_from_store(self._store.STORE_LOOKUP["icon"]))
self._window.connect("key-press-event", self._on_key_press)