mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Reduce custom logging, delegate to logging extension
This commit is contained in:
@@ -77,9 +77,6 @@ export class OpenProjectApi implements Extension {
|
||||
*/
|
||||
async onLoadDocument(data: onLoadDocumentPayload) {
|
||||
const { resourceUrl } = data.context;
|
||||
|
||||
printLog(`[onLoadDocument] GET ${resourceUrl}`);
|
||||
|
||||
const response = await fetchResource(resourceUrl, data.context.token);
|
||||
|
||||
if (response.status != 200) {
|
||||
@@ -111,8 +108,6 @@ export class OpenProjectApi implements Extension {
|
||||
return;
|
||||
}
|
||||
|
||||
printLog(`[onStoreDocument] PATCH ${resourceUrl}`);
|
||||
|
||||
const base64Data = Buffer.from(Y.encodeStateAsUpdate(data.document)).toString("base64");
|
||||
|
||||
// Create a copy of the document to avoid side effects
|
||||
|
||||
Reference in New Issue
Block a user