Other: Add API debug option in QA builds

This commit is contained in:
James Houlahan
2022-11-17 13:10:03 +01:00
parent 1e48ab4b9c
commit e5095b2154
4 changed files with 137 additions and 8 deletions

View File

@ -139,14 +139,7 @@ func New( //nolint:funlen
logSMTP bool, // whether to log SMTP activity
) (*Bridge, <-chan events.Event, error) {
// api is the user's API manager.
api := liteapi.New(
liteapi.WithHostURL(apiURL),
liteapi.WithAppVersion(constants.AppVersion(curVersion.Original())),
liteapi.WithCookieJar(cookieJar),
liteapi.WithTransport(roundTripper),
liteapi.WithAttPoolSize(vault.SyncAttPool()),
liteapi.WithLogger(logrus.StandardLogger()),
)
api := liteapi.New(newAPIOptions(apiURL, curVersion, cookieJar, roundTripper, vault.SyncAttPool())...)
// tasks holds all the bridge's background tasks.
tasks := async.NewGroup(context.Background(), crashHandler)