-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Description
NativeCloudSqlite has a curlDiagnostics flag that would be nice to be able toggle.
There is currently an option to increase the log level of CloudSqlite based on the Logger configuration. Could that also be used to enable curlDiagnostics?
itwinjs-core/core/backend/src/CloudSqlite.ts
Lines 966 to 975 in d7bd858
| private static makeCache(args: CreateCloudCacheArg): CloudCache { | |
| const cacheName = args.cacheName; | |
| const rootDir = args.cacheDir ?? join(IModelHost.profileDir, "CloudCaches", cacheName); | |
| IModelJsFs.recursiveMkDirSync(rootDir); | |
| const cache = new NativeLibrary.nativeLib.CloudCache({ rootDir, name: cacheName, cacheSize: args.cacheSize ?? "10G" }); | |
| if (Logger.getLevel("CloudSqlite") === LogLevel.Trace) { | |
| cache.setLogMask(CloudSqlite.LoggingMask.All); | |
| } | |
| this.cloudCaches.set(cacheName, cache); | |
| return cache; |
Why?
This would be helpful in diagnosing connection issues in applications, notably SSL and proxy configurations.
Metadata
Metadata
Assignees
Labels
No labels