Log usage of linked url import agent (#9263)

GitOrigin-RevId: 4b05d6cbc291363f22b2511b5cd74dbf6c6bb7fb
This commit is contained in:
Alf Eaton 2022-08-18 09:18:04 +01:00 committed by Copybot
parent 4250c4030f
commit f6d6f01f78

View file

@ -1,3 +1,4 @@
const logger = require('@overleaf/logger')
const request = require('request')
const _ = require('underscore')
const urlValidator = require('valid-url')
@ -13,6 +14,10 @@ function createLinkedFile(
userId,
callback
) {
logger.info(
{ projectId, userId, url: linkedFileData.url },
'create linked file'
)
linkedFileData = _sanitizeData(linkedFileData)
_getUrlStream(projectId, linkedFileData, userId, (err, readStream) => {
if (err) {