mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-10 04:12:15 +03:00
Remove extraneous __class__ in logging strings
This commit is contained in:
parent
19e750eddd
commit
63f3859af4
@ -520,8 +520,8 @@ class AppWindow(object):
|
|||||||
companion.session.invalidate()
|
companion.session.invalidate()
|
||||||
self.login()
|
self.login()
|
||||||
|
|
||||||
except Exception as e: # Including CredentialsError, ServerError
|
except Exception as e: # Including CredentialsError, ServerError
|
||||||
logger.debug(f'{__class__}', exc_info=e)
|
logger.debug('"other" exception', exc_info=e)
|
||||||
self.status['text'] = str(e)
|
self.status['text'] = str(e)
|
||||||
play_bad = True
|
play_bad = True
|
||||||
|
|
||||||
@ -543,7 +543,7 @@ class AppWindow(object):
|
|||||||
report = 'Failure'
|
report = 'Failure'
|
||||||
else:
|
else:
|
||||||
report = 'Undocked!'
|
report = 'Undocked!'
|
||||||
logger.debug(f'{__class__}: Retry for shipyard - {report}')
|
logger.debug(f'Retry for shipyard - {report}')
|
||||||
if not data['commander'].get('docked'):
|
if not data['commander'].get('docked'):
|
||||||
# might have un-docked while we were waiting for retry in which case station data is unreliable
|
# might have un-docked while we were waiting for retry in which case station data is unreliable
|
||||||
pass
|
pass
|
||||||
@ -612,10 +612,10 @@ class AppWindow(object):
|
|||||||
# Disable WinSparkle automatic update checks, IFF configured to do so when in-game
|
# Disable WinSparkle automatic update checks, IFF configured to do so when in-game
|
||||||
if config.getint('disable_autoappupdatecheckingame') and 1:
|
if config.getint('disable_autoappupdatecheckingame') and 1:
|
||||||
self.updater.setAutomaticUpdatesCheck(False)
|
self.updater.setAutomaticUpdatesCheck(False)
|
||||||
logger.info(f'{__class__}: Monitor: Disable WinSparkle automatic update checks')
|
logger.info('Monitor: Disable WinSparkle automatic update checks')
|
||||||
# Can start dashboard monitoring
|
# Can start dashboard monitoring
|
||||||
if not dashboard.start(self.w, monitor.started):
|
if not dashboard.start(self.w, monitor.started):
|
||||||
logger.info(f"{__class__}: Can't start Status monitoring")
|
logger.info("Can't start Status monitoring")
|
||||||
|
|
||||||
# Export loadout
|
# Export loadout
|
||||||
if entry['event'] == 'Loadout'\
|
if entry['event'] == 'Loadout'\
|
||||||
@ -643,7 +643,7 @@ class AppWindow(object):
|
|||||||
# Enable WinSparkle automatic update checks
|
# Enable WinSparkle automatic update checks
|
||||||
# NB: Do this blindly, in case option got changed whilst in-game
|
# NB: Do this blindly, in case option got changed whilst in-game
|
||||||
self.updater.setAutomaticUpdatesCheck(True)
|
self.updater.setAutomaticUpdatesCheck(True)
|
||||||
logger.info(f'{__class__}: Monitor: Enable WinSparkle automatic update checks')
|
logger.info('Monitor: Enable WinSparkle automatic update checks')
|
||||||
|
|
||||||
# cAPI auth
|
# cAPI auth
|
||||||
def auth(self, event=None):
|
def auth(self, event=None):
|
||||||
@ -660,7 +660,7 @@ class AppWindow(object):
|
|||||||
except companion.ServerError as e:
|
except companion.ServerError as e:
|
||||||
self.status['text'] = str(e)
|
self.status['text'] = str(e)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug(f'{__class__}', exc_info=e)
|
logger.debug('Frontier CAPI Auth:', exc_info=e)
|
||||||
self.status['text'] = str(e)
|
self.status['text'] = str(e)
|
||||||
self.cooldown()
|
self.cooldown()
|
||||||
|
|
||||||
@ -815,7 +815,7 @@ class AppWindow(object):
|
|||||||
self.protocol("WM_DELETE_WINDOW", self._destroy)
|
self.protocol("WM_DELETE_WINDOW", self._destroy)
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
logger.info(f'{__class__}: Current version is {appversion}')
|
logger.info(f'Current version is {appversion}')
|
||||||
|
|
||||||
def apply(self):
|
def apply(self):
|
||||||
self._destroy()
|
self._destroy()
|
||||||
@ -855,7 +855,7 @@ class AppWindow(object):
|
|||||||
except companion.ServerError as e:
|
except companion.ServerError as e:
|
||||||
self.status['text'] = str(e)
|
self.status['text'] = str(e)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug(f'{__class__}', exc_info=e)
|
logger.debug('"other" exception', exc_info=e)
|
||||||
self.status['text'] = str(e)
|
self.status['text'] = str(e)
|
||||||
|
|
||||||
def onexit(self, event=None):
|
def onexit(self, event=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user