mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Log usage of linked url import agent (#9263)
GitOrigin-RevId: 4b05d6cbc291363f22b2511b5cd74dbf6c6bb7fb
This commit is contained in:
parent
4250c4030f
commit
f6d6f01f78
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue