Skip to content

Commit c140db2

Browse files
committed
[gsidna] added info logging to initialization
1 parent 091f8f3 commit c140db2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1111

1212
- Added testing for Python 3.14
1313
- Added logging of the instrument serial number to GeoCOM connection
14+
- Added instrument info logging to GSI Online DNA initialization
1415

1516
### Changed
1617

src/geocompy/gsi/dna/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ def __init__(
162162
self.settings.get_format() # Sync format setting
163163

164164
self._logger.info("Connection initialized")
165+
name = self.measurements.get_instrument_type().value or "Unknown"
166+
serial_number = self.measurements.get_serialnumber().value or 0
167+
version = self.measurements.get_software_version().value or 0.0
168+
self._logger.info(
169+
f"Instrument: {name} "
170+
f"(serial: {serial_number:d}, "
171+
f"firmware: v{version:.4f})"
172+
)
165173

166174
@property
167175
def is_client_gsi16(self) -> bool:

0 commit comments

Comments
 (0)