@@ -40,7 +40,7 @@ class PpmsConnection:
40
40
cache_users_only : bool
41
41
Flag indicating that only PPMS user details will be stored in the
42
42
on-disk cache, nothing else.
43
- last_served_from_cache
43
+ last_served_from_cache : bool
44
44
Indicates if the last request was served from the cache or on-line.
45
45
users : dict
46
46
A dict with usernames as keys, mapping to the related
@@ -171,7 +171,7 @@ def __authenticate(self):
171
171
log .error (msg )
172
172
raise requests .exceptions .ConnectionError (msg )
173
173
174
- log .debug (
174
+ log .trace (
175
175
"Authentication succeeded, response=[{}], http_status=[{}]" ,
176
176
response .text ,
177
177
response .status_code ,
@@ -614,18 +614,18 @@ def get_running_sheet(self, core_facility_ref, date, ignore_uncached_users=False
614
614
full = entry ["User" ]
615
615
if full not in self .fullname_mapping :
616
616
if ignore_uncached_users :
617
- log .debug ("Ignoring booking for uncached user [{}]" , full )
617
+ log .debug (f "Ignoring booking for uncached / unknown user [{ full } ]" )
618
618
continue
619
619
620
- log .debug ("Booking for an uncached user ({}) found!" , full )
620
+ log .debug (f "Booking refers an uncached user ({ full } ), updating users!" )
621
621
self .update_users ()
622
622
623
623
if full not in self .fullname_mapping :
624
624
log .error ("PPMS doesn't seem to know user [{}], skipping" , full )
625
625
continue
626
626
627
627
log .trace (
628
- "Booking for user '{}' ({}) found" , self . fullname_mapping [ full ], full
628
+ f "Booking for user '{ self . fullname_mapping [ full ] } ' ({ full } ) found"
629
629
)
630
630
system_name = entry ["Object" ]
631
631
system_ids = self .get_systems_matching ("" , [system_name ])
0 commit comments