Skip to content

Commit

Permalink
Release 2024.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski committed Sep 15, 2024
1 parent 11bd24d commit a474369
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
## [development]
## [2024.9.3]
## Added
- up to 8 shutters supported

## Changed
- ethernet-enabled devices now show eth ip address when wifi is disabled (#266)
- rows in device list are slimmer now
- made shutter icons in device list smaller

## Fixed
- clicking main menu buttons doesn't crash anymore (#235)
Expand Down
2 changes: 1 addition & 1 deletion tdmgr/GUI/dialogs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def open_config_file(self):

@staticmethod
def open_log_location():
fi = QFileInfo(log.getLogger().handlers[1].baseFilename)
fi = QFileInfo(logging.getLogger().handlers[1].baseFilename)
QDesktopServices.openUrl(QUrl.fromLocalFile(fi.absolutePath()))

def auto_telemetry_period(self):
Expand Down
10 changes: 6 additions & 4 deletions tdmgr/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,24 @@ def configure_logging(args) -> None:
elif args.log_location:
log_path = os.path.join(args.log_location, "tdm.log")


logging.basicConfig(
level="DEBUG" if args.debug else "INFO",
datefmt="%Y-%m-%d %H:%M:%S",
format="%(asctime)s [%(levelname)s] [%(filename)s] %(message)s",
)
logging.getLogger(__name__).addHandler(

logging.getLogger().addHandler(
TimedRotatingFileHandler(filename=log_path, when="d", interval=1)
)


def get_settings(args: argparse.Namespace, filename: str) -> QSettings:
if args.local:
return QSettings(f"{filename}.ini", QSettings.IniFormat)
return QSettings(filename, QSettings.IniFormat)
if args.config_location:
return QSettings(os.path.join(args.config_location, f"{filename}.ini"), QSettings.IniFormat)
return QSettings(QSettings.IniFormat, QSettings.UserScope, "tdm", f"{filename}.ini")
return QSettings(os.path.join(args.config_location, filename), QSettings.IniFormat)
return QSettings(QSettings.IniFormat, QSettings.UserScope, "tdm", filename)


def setup_parser() -> argparse.ArgumentParser:
Expand Down

0 comments on commit a474369

Please sign in to comment.