Skip to content

Commit 2a6f23d

Browse files
committed
Minor logging changes
1 parent cbdcbca commit 2a6f23d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/pyppms/booking.py

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def from_runningsheet(cls, entry, system_id, username, date):
100100
)
101101
raise
102102

103+
log.trace(f"Created booking from runningsheet: {booking}")
103104
return booking
104105

105106
def starttime_fromstr(self, time_str, date=None):

src/pyppms/ppms.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -614,18 +614,18 @@ def get_running_sheet(self, core_facility_ref, date, ignore_uncached_users=False
614614
full = entry["User"]
615615
if full not in self.fullname_mapping:
616616
if ignore_uncached_users:
617-
log.debug("Ignoring booking for uncached user [{}]", full)
617+
log.debug(f"Ignoring booking for uncached / unknown user [{full}]")
618618
continue
619619

620-
log.debug("Booking for an uncached user ({}) found!", full)
620+
log.debug(f"Booking refers an uncached user ({full}), updating users!")
621621
self.update_users()
622622

623623
if full not in self.fullname_mapping:
624624
log.error("PPMS doesn't seem to know user [{}], skipping", full)
625625
continue
626626

627627
log.trace(
628-
"Booking for user '{}' ({}) found", self.fullname_mapping[full], full
628+
f"Booking for user '{self.fullname_mapping[full]}' ({full}) found"
629629
)
630630
system_name = entry["Object"]
631631
system_ids = self.get_systems_matching("", [system_name])

0 commit comments

Comments
 (0)