debug: probe specifically for GetUT in SpaceCenter
This commit is contained in:
@@ -89,6 +89,22 @@ export class ServiceCache {
|
||||
.slice(0, 3)
|
||||
.map((p) => `${p.name} -> ${svc.name}.${p.name}`),
|
||||
);
|
||||
// Find GetUT specifically
|
||||
const getut = (svc.procedures ?? []).find((p) =>
|
||||
p.name === 'GetUT' || p.name === 'getut' || p.name === 'SpaceCenter.GetUT',
|
||||
);
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
'[krpc-client] SpaceCenter procedure search for "GetUT" →',
|
||||
getut ? `FOUND: name="${getut.name}"` : 'NOT FOUND in raw list',
|
||||
);
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(
|
||||
'[krpc-client] SpaceCenter keys containing "GetUT":',
|
||||
(svc.procedures ?? [])
|
||||
.map((p) => p.name)
|
||||
.filter((n) => n.toLowerCase().includes('getut')),
|
||||
);
|
||||
}
|
||||
for (const proc of svc.procedures ?? []) {
|
||||
// proc.name already includes the class prefix when applicable
|
||||
|
||||
Reference in New Issue
Block a user