Skip to content

Allow enabling curlDiagnostics #8753

@alexdunae

Description

@alexdunae

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?

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions