mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
remove a log message about fetching URLs (#643)
Every fetch made from the client is logged to the console. But this isn't really necessary, and is particularly confusing in grist-static, where those fetches are virtualized. Tests in grist-saas may need adjusting to remove the logger.
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
||||
getDocApiUsageKeysToIncr,
|
||||
WebhookSubscription
|
||||
} from 'app/server/lib/DocApi';
|
||||
import log from 'app/server/lib/log';
|
||||
import {delayAbort} from 'app/server/lib/serverUtils';
|
||||
import axios, {AxiosRequestConfig, AxiosResponse} from 'axios';
|
||||
import {delay} from 'bluebird';
|
||||
@@ -2485,7 +2484,6 @@ function testDocApi() {
|
||||
headers: {Authorization: 'Bearer api_key_for_kiwi'},
|
||||
fetch: fetch as any,
|
||||
newFormData: () => new FormData() as any,
|
||||
logger: log
|
||||
});
|
||||
// upload something for Chimpy and something else for Kiwi.
|
||||
const worker1 = await userApi.getWorkerAPI('import');
|
||||
@@ -2593,7 +2591,6 @@ function testDocApi() {
|
||||
headers: {Authorization: 'Bearer api_key_for_chimpy'},
|
||||
fetch: fetch as any,
|
||||
newFormData: () => new FormData() as any,
|
||||
logger: log
|
||||
});
|
||||
const ws2 = (await nasaApi.getOrgWorkspaces('current'))[0].id;
|
||||
const doc2 = await nasaApi.newDoc({name: 'testdoc2', urlId: 'urlid'}, ws2);
|
||||
@@ -2625,7 +2622,6 @@ function testDocApi() {
|
||||
headers: {Authorization: 'Bearer api_key_for_chimpy'},
|
||||
fetch: fetch as any,
|
||||
newFormData: () => new FormData() as any,
|
||||
logger: log
|
||||
});
|
||||
const ws2 = (await nasaApi.getOrgWorkspaces('current'))[0].id;
|
||||
const doc2 = await nasaApi.newDoc({name: 'testdoc2'}, ws2);
|
||||
|
||||
@@ -137,7 +137,6 @@ export class TestServer {
|
||||
headers: {Authorization: `Bearer api_key_for_${user}`},
|
||||
fetch: fetch as unknown as typeof globalThis.fetch,
|
||||
newFormData: () => new FormData() as any,
|
||||
logger: log
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user