replace runtime print statements with logging

- all print calls outside the __main__ test blocks are now log calls:
  info for run information (CTA configuration summary on one line, run
  number, CTA start pid), warning/error for aborts and failures, debug for
  dumps (object/transform info, autofocus measurements, logger tree)
- psi_device: remove the import-time logging.basicConfig(level=DEBUG) and
  print('past logging'); the standalone test configures logging itself
- startup import timings are logged at info level
- ctadaq added to the -l log level list

Prints from PBTools/PBSwissMX, slic and the JFJ client are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
John Henry Beale
2026-10-16 11:56:49 +02:00
co-authored by Claude Opus 5.5
parent efe18d4204
commit 2d9bbdac9d
8 changed files with 53 additions and 82 deletions
+4 -4
View File
@@ -91,8 +91,8 @@ class MarkerDelegate(QItemDelegate):
editor.setText("{}".format(index.model().data(index)))
def setModelData(self, editor, model, index):
print("model {}".format(model))
print(
_log.debug("model {}".format(model))
_log.debug(
"delegate setData: {}x{} => {}".format(
index.row(), index.column(), editor.text()
)
@@ -101,7 +101,7 @@ class MarkerDelegate(QItemDelegate):
model.setData(index, float(editor.text()), Qt.UserRole)
def emitCommitData(self):
print("imagedelegate emitting")
_log.debug("imagedelegate emitting")
self.commitData.emit(self.sender())
@@ -402,7 +402,7 @@ class WndFixTarget(QWidget):
def dump_data(self):
print(self._data)
_log.info(f'{self._data}')
#for ref, x, y, cx, cy, ox, oy in self.get_data():
# print(f"fiducial:{ref} [{x}, {y}, {cx}, {cy}]")