* In all package.json and package-lock.json,
- set TS SDK to 1.17.5, which has the automatic log level handling * In useConnection.ts - push the logging/setLevel message onto the message history stack so it is clear in the Inspector that it has been sent.
This commit is contained in:
parent
e1d311c6e1
commit
6db41c19d5
1 changed files with 20 additions and 11 deletions
|
|
@ -599,6 +599,15 @@ export function useConnection({
|
|||
if (capabilities?.logging && defaultLoggingLevel) {
|
||||
lastRequest = "logging/setLevel";
|
||||
await client.setLoggingLevel(defaultLoggingLevel);
|
||||
pushHistory(
|
||||
{
|
||||
method: "logging/setLevel",
|
||||
params: {
|
||||
level: defaultLoggingLevel,
|
||||
},
|
||||
},
|
||||
{},
|
||||
);
|
||||
lastRequest = "";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue