mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #5648 from overleaf/em-revert-gcp-logging-web
Revert "Improve GCP logging for web" GitOrigin-RevId: 92d446baf62108da1df92146eec12a2fe69d30ee
This commit is contained in:
parent
641b10cceb
commit
e5676a9643
129 changed files with 287 additions and 572 deletions
|
@ -12,7 +12,7 @@
|
|||
const metrics = require('@overleaf/metrics')
|
||||
metrics.initialize(process.env.METRICS_APP_NAME || 'web')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const PlansLocator = require('./app/src/Features/Subscription/PlansLocator')
|
||||
logger.initialize(process.env.METRICS_APP_NAME || 'web')
|
||||
logger.logger.serializers.user = require('./app/src/infrastructure/LoggerSerializers').user
|
||||
|
|
|
@ -6,7 +6,7 @@ const Queues = require('../../infrastructure/Queues')
|
|||
const uuid = require('uuid')
|
||||
const _ = require('lodash')
|
||||
const { expressify } = require('../../util/promises')
|
||||
const { logger } = require('@overleaf/logger')
|
||||
const { logger } = require('logger-sharelatex')
|
||||
|
||||
const analyticsEventsQueue = Queues.getQueue('analytics-events')
|
||||
const analyticsEditingSessionsQueue = Queues.getQueue(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const AnalyticsRegistrationSourceHelper = require('./AnalyticsRegistrationSourceHelper')
|
||||
const SessionManager = require('../../Features/Authentication/SessionManager')
|
||||
|
|
|
@ -4,7 +4,7 @@ const OError = require('@overleaf/o-error')
|
|||
const LoginRateLimiter = require('../Security/LoginRateLimiter')
|
||||
const UserUpdater = require('../User/UserUpdater')
|
||||
const Metrics = require('@overleaf/metrics')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const querystring = require('querystring')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const basicAuth = require('basic-auth-connect')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const AuthorizationManager = require('./AuthorizationManager')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const { ObjectId } = require('mongodb')
|
||||
const Errors = require('../Errors/Errors')
|
||||
const HttpErrorHandler = require('../Errors/HttpErrorHandler')
|
||||
|
|
|
@ -2,7 +2,7 @@ const BetaProgramHandler = require('./BetaProgramHandler')
|
|||
const OError = require('@overleaf/o-error')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
|
||||
const BetaProgramController = {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const OError = require('@overleaf/o-error')
|
||||
const { URL } = require('url')
|
||||
const settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const V1Api = require('../V1/V1Api')
|
||||
const sanitizeHtml = require('sanitize-html')
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
let CaptchaMiddleware
|
||||
const request = require('request')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Settings = require('@overleaf/settings')
|
||||
|
||||
module.exports = CaptchaMiddleware = {
|
||||
|
|
|
@ -8,7 +8,7 @@ const SessionManager = require('../Authentication/SessionManager')
|
|||
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
||||
const TagsHandler = require('../Tags/TagsHandler')
|
||||
const Errors = require('../Errors/Errors')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const { expressify } = require('../../util/promises')
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -3,7 +3,7 @@ const OError = require('@overleaf/o-error')
|
|||
const { Project } = require('../../models/Project')
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const ProjectHelper = require('../Project/ProjectHelper')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const ContactManager = require('../Contacts/ContactManager')
|
||||
const PrivilegeLevels = require('../Authorization/PrivilegeLevels')
|
||||
const TpdsProjectFlusher = require('../ThirdPartyDataStore/TpdsProjectFlusher')
|
||||
|
|
|
@ -19,7 +19,7 @@ const LimitationsManager = require('../Subscription/LimitationsManager')
|
|||
const UserGetter = require('../User/UserGetter')
|
||||
const CollaboratorsGetter = require('./CollaboratorsGetter')
|
||||
const CollaboratorsInviteHandler = require('./CollaboratorsInviteHandler')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const EmailHelper = require('../Helpers/EmailHelper')
|
||||
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*/
|
||||
const { ProjectInvite } = require('../../models/ProjectInvite')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const CollaboratorsEmailHandler = require('./CollaboratorsEmailHandler')
|
||||
const CollaboratorsHandler = require('./CollaboratorsHandler')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const { Project } = require('../../models/Project')
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
|
|
|
@ -21,7 +21,7 @@ if (Settings.redis.clsi_cookie_secondary != null) {
|
|||
rclient_secondary = RedisWrapper.client('clsi_cookie_secondary')
|
||||
}
|
||||
const Cookie = require('cookie')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Metrics = require('@overleaf/metrics')
|
||||
|
||||
const clsiCookiesEnabled =
|
||||
|
|
|
@ -3,7 +3,7 @@ const Settings = require('@overleaf/settings')
|
|||
const request = require('request')
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const { URL } = require('url')
|
||||
const OError = require('@overleaf/o-error')
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
let ClsiStateManager
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const crypto = require('crypto')
|
||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ const Metrics = require('@overleaf/metrics')
|
|||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const CompileManager = require('./CompileManager')
|
||||
const ClsiManager = require('./ClsiManager')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const request = require('request')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
|
|
|
@ -16,7 +16,7 @@ let ContactsController
|
|||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const ContactManager = require('./ContactManager')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Modules = require('../../infrastructure/Modules')
|
||||
|
||||
module.exports = ContactsController = {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
let CooldownManager
|
||||
const RedisWrapper = require('../../infrastructure/RedisWrapper')
|
||||
const rclient = RedisWrapper.client('cooldown')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
const COOLDOWN_IN_SECONDS = 60 * 10
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
let CooldownMiddleware
|
||||
const CooldownManager = require('./CooldownManager')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = CooldownMiddleware = {
|
||||
freezeProject(req, res, next) {
|
||||
|
|
|
@ -2,7 +2,7 @@ const { promisify } = require('util')
|
|||
const { promisifyMultiResult } = require('../../util/promises')
|
||||
const request = require('request').defaults({ jar: false })
|
||||
const OError = require('@overleaf/o-error')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const settings = require('@overleaf/settings')
|
||||
const Errors = require('../Errors/Errors')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ const OError = require('@overleaf/o-error')
|
|||
const settings = require('@overleaf/settings')
|
||||
const _ = require('underscore')
|
||||
const async = require('async')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const { promisify } = require('util')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ const OError = require('@overleaf/o-error')
|
|||
const ProjectLocator = require('../Project/ProjectLocator')
|
||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const _ = require('lodash')
|
||||
|
||||
function getDocument(req, res, next) {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
let ProjectDownloadsController
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Metrics = require('@overleaf/metrics')
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const ProjectZipStreamManager = require('./ProjectZipStreamManager')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
let ProjectZipStreamManager
|
||||
const archiver = require('archiver')
|
||||
const async = require('async')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const FileStoreHandler = require('../FileStore/FileStoreHandler')
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const Metrics = require('@overleaf/metrics')
|
||||
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
||||
|
|
|
@ -14,7 +14,7 @@ const Errors = require('../Errors/Errors')
|
|||
const HttpErrorHandler = require('../Errors/HttpErrorHandler')
|
||||
const ProjectEntityUpdateHandler = require('../Project/ProjectEntityUpdateHandler')
|
||||
const DocstoreManager = require('../Docstore/DocstoreManager')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const { expressify } = require('../../util/promises')
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const { callbackify } = require('util')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const nodemailer = require('nodemailer')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
let ErrorController
|
||||
const Errors = require('./Errors')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const SamlLogHandler = require('../SamlLog/SamlLogHandler')
|
||||
const HttpErrorHandler = require('./HttpErrorHandler')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Settings = require('@overleaf/settings')
|
||||
|
||||
function renderJSONError(res, message, info = {}) {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
const ExportsHandler = require('./ExportsHandler')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = {
|
||||
exportProject(req, res, next) {
|
||||
|
|
|
@ -20,7 +20,7 @@ const ProjectHistoryHandler = require('../Project/ProjectHistoryHandler')
|
|||
const ProjectLocator = require('../Project/ProjectLocator')
|
||||
const ProjectRootDocManager = require('../Project/ProjectRootDocManager')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
let settings = require('@overleaf/settings')
|
||||
const async = require('async')
|
||||
let request = require('request')
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*/
|
||||
let FileHashManager
|
||||
const crypto = require('crypto')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const fs = require('fs')
|
||||
const _ = require('underscore')
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
const FileStoreHandler = require('./FileStoreHandler')
|
||||
const ProjectLocator = require('../Project/ProjectLocator')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const _ = require('underscore')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const fs = require('fs')
|
||||
const request = require('request')
|
||||
const settings = require('@overleaf/settings')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const RedisWrapper = require('../../infrastructure/RedisWrapper')
|
||||
const rclient = RedisWrapper.client('health_check')
|
||||
const settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
const {
|
||||
SmokeTestFailure,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
let HistoryController
|
||||
const OError = require('@overleaf/o-error')
|
||||
const async = require('async')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const request = require('request')
|
||||
const settings = require('@overleaf/settings')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
|
|
|
@ -14,7 +14,7 @@ let InactiveProjectManager
|
|||
const OError = require('@overleaf/o-error')
|
||||
const async = require('async')
|
||||
const _ = require('underscore')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const DocstoreManager = require('../Docstore/DocstoreManager')
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const ProjectUpdateHandler = require('../Project/ProjectUpdateHandler')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const OError = require('@overleaf/o-error')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const settings = require('@overleaf/settings')
|
||||
const request = require('requestretry')
|
||||
|
|
|
@ -17,7 +17,7 @@ const SessionManager = require('../Authentication/SessionManager')
|
|||
const EditorController = require('../Editor/EditorController')
|
||||
const ProjectLocator = require('../Project/ProjectLocator')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const _ = require('underscore')
|
||||
const LinkedFilesHandler = require('./LinkedFilesHandler')
|
||||
const {
|
||||
|
|
|
@ -15,7 +15,7 @@ let MetaController
|
|||
const OError = require('@overleaf/o-error')
|
||||
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
||||
const MetaHandler = require('./MetaHandler')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = MetaController = {
|
||||
getMetadata(req, res, next) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const { callbackify } = require('util')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const crypto = require('crypto')
|
||||
const Mailchimp = require('mailchimp-api-v3')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const settings = require('@overleaf/settings')
|
||||
const request = require('request')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const _ = require('lodash')
|
||||
|
||||
const notificationsApi = _.get(settings, ['apis', 'notifications', 'url'])
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const ProjectDetailsHandler = require('./ProjectDetailsHandler')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = {
|
||||
getProjectDetails(req, res, next) {
|
||||
|
|
|
@ -4,7 +4,7 @@ const OError = require('@overleaf/o-error')
|
|||
const fs = require('fs')
|
||||
const crypto = require('crypto')
|
||||
const async = require('async')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const { ObjectId } = require('mongodb')
|
||||
const ProjectDeleter = require('./ProjectDeleter')
|
||||
const ProjectDuplicator = require('./ProjectDuplicator')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const Settings = require('@overleaf/settings')
|
||||
|
|
|
@ -5,7 +5,7 @@ const { callbackify } = require('util')
|
|||
const { Project } = require('../../models/Project')
|
||||
const { DeletedProject } = require('../../models/DeletedProject')
|
||||
const Errors = require('../Errors/Errors')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
||||
const TagsHandler = require('../Tags/TagsHandler')
|
||||
const ProjectHelper = require('./ProjectHelper')
|
||||
|
|
|
@ -2,7 +2,7 @@ const _ = require('underscore')
|
|||
const ProjectGetter = require('./ProjectGetter')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
const { Project } = require('../../models/Project')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const TpdsUpdateSender = require('../ThirdPartyDataStore/TpdsUpdateSender')
|
||||
const PublicAccessLevels = require('../Authorization/PublicAccessLevels')
|
||||
const Errors = require('../Errors/Errors')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const { callbackify } = require('util')
|
||||
const { callbackifyMultiResult } = require('../../util/promises')
|
||||
const _ = require('underscore')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const path = require('path')
|
||||
const { ObjectId } = require('mongodb')
|
||||
const Settings = require('@overleaf/settings')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const _ = require('lodash')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const async = require('async')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const Path = require('path')
|
||||
const fs = require('fs')
|
||||
|
|
|
@ -4,7 +4,7 @@ const OError = require('@overleaf/o-error')
|
|||
const metrics = require('@overleaf/metrics')
|
||||
const { promisifyAll } = require('../../util/promises')
|
||||
const { Project } = require('../../models/Project')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const LockManager = require('../../infrastructure/LockManager')
|
||||
const { DeletedProject } = require('../../models/DeletedProject')
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
const { Project } = require('../../models/Project')
|
||||
const ProjectDetailsHandler = require('./ProjectDetailsHandler')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const settings = require('@overleaf/settings')
|
||||
const HistoryManager = require('../History/HistoryManager')
|
||||
const ProjectEntityUpdateHandler = require('./ProjectEntityUpdateHandler')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const _ = require('underscore')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const async = require('async')
|
||||
const ProjectGetter = require('./ProjectGetter')
|
||||
const Errors = require('../Errors/Errors')
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const { Project } = require('../../models/Project')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = {
|
||||
markAsUpdated(projectId, lastUpdatedAt, lastUpdatedBy, callback) {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
let PublishersGetter
|
||||
const UserMembershipsHandler = require('../UserMembership/UserMembershipsHandler')
|
||||
const UserMembershipEntityConfigs = require('../UserMembership/UserMembershipEntityConfigs')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const _ = require('underscore')
|
||||
|
||||
module.exports = PublishersGetter = {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
let ReferencesController
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const ReferencesHandler = require('./ReferencesHandler')
|
||||
const settings = require('@overleaf/settings')
|
||||
const EditorRealTimeController = require('../Editor/EditorRealTimeController')
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
let ReferencesHandler
|
||||
const OError = require('@overleaf/o-error')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const request = require('request')
|
||||
const settings = require('@overleaf/settings')
|
||||
const Features = require('../../infrastructure/Features')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const { SamlLog } = require('../../models/SamlLog')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
function log(providerId, sessionId, data) {
|
||||
try {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const RateLimiter = require('../../infrastructure/RateLimiter')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const LoginRateLimiter = require('./LoginRateLimiter')
|
||||
const settings = require('@overleaf/settings')
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const _ = require('underscore')
|
||||
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
||||
const Settings = require('@overleaf/settings')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const request = require('request')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
|
||||
const TEN_SECONDS = 1000 * 10
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
let UniversityController
|
||||
const settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Settings = require('@overleaf/settings')
|
||||
|
||||
module.exports = UniversityController = {
|
||||
|
|
|
@ -6,7 +6,7 @@ const SubscriptionLocator = require('./SubscriptionLocator')
|
|||
const UserFeaturesUpdater = require('./UserFeaturesUpdater')
|
||||
const FeaturesHelper = require('./FeaturesHelper')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const ReferalFeatures = require('../Referal/ReferalFeatures')
|
||||
const V1SubscriptionManager = require('./V1SubscriptionManager')
|
||||
const InstitutionsFeatures = require('../Institutions/InstitutionsFeatures')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const OError = require('@overleaf/o-error')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
const SubscriptionLocator = require('./SubscriptionLocator')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
function ensurePlansAreSetupCorrectly() {
|
||||
Settings.plans.forEach(plan => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const recurly = require('recurly')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const { callbackify } = require('util')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ const crypto = require('crypto')
|
|||
const request = require('request')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const xml2js = require('xml2js')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Async = require('async')
|
||||
const Errors = require('../Errors/Errors')
|
||||
const SubscriptionErrors = require('./Errors')
|
||||
|
|
|
@ -5,7 +5,7 @@ const SubscriptionViewModelBuilder = require('./SubscriptionViewModelBuilder')
|
|||
const LimitationsManager = require('./LimitationsManager')
|
||||
const RecurlyWrapper = require('./RecurlyWrapper')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const GeoIpLookup = require('../../infrastructure/GeoIpLookup')
|
||||
const FeaturesUpdater = require('./FeaturesUpdater')
|
||||
const planFeatures = require('./planFeatures')
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*/
|
||||
const SubscriptionGroupHandler = require('./SubscriptionGroupHandler')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const SubscriptionLocator = require('./SubscriptionLocator')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const _ = require('underscore')
|
||||
|
|
|
@ -21,7 +21,7 @@ const SubscriptionLocator = require('./SubscriptionLocator')
|
|||
const UserGetter = require('../User/UserGetter')
|
||||
const { Subscription } = require('../../models/Subscription')
|
||||
const LimitationsManager = require('./LimitationsManager')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const OneTimeTokenHandler = require('../Security/OneTimeTokenHandler')
|
||||
const EmailHandler = require('../Email/EmailHandler')
|
||||
const settings = require('@overleaf/settings')
|
||||
|
|
|
@ -3,7 +3,7 @@ const { promisify } = require('util')
|
|||
const RecurlyWrapper = require('./RecurlyWrapper')
|
||||
const RecurlyClient = require('./RecurlyClient')
|
||||
const { User } = require('../../models/User')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const SubscriptionUpdater = require('./SubscriptionUpdater')
|
||||
const LimitationsManager = require('./LimitationsManager')
|
||||
const EmailHandler = require('../Email/EmailHandler')
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
const { promisify } = require('util')
|
||||
const { Subscription } = require('../../models/Subscription')
|
||||
const { DeletedSubscription } = require('../../models/DeletedSubscription')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
require('./GroupPlansData') // make sure dynamic group plans are loaded
|
||||
|
||||
const SubscriptionLocator = {
|
||||
|
|
|
@ -7,7 +7,7 @@ const FeaturesUpdater = require('./FeaturesUpdater')
|
|||
const FeaturesHelper = require('./FeaturesHelper')
|
||||
const AnalyticsManager = require('../Analytics/AnalyticsManager')
|
||||
const { DeletedSubscription } = require('../../models/DeletedSubscription')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
/**
|
||||
* Change the admin of the given subscription.
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const TeamInvitesHandler = require('./TeamInvitesHandler')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const SubscriptionLocator = require('./SubscriptionLocator')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
let TeamInvitesHandler
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const crypto = require('crypto')
|
||||
const async = require('async')
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ const path = require('path')
|
|||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const TemplatesManager = require('./TemplatesManager')
|
||||
const ProjectHelper = require('../Project/ProjectHelper')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = TemplatesController = {
|
||||
getV1Template(req, res) {
|
||||
|
|
|
@ -20,7 +20,7 @@ const FileWriter = require('../../infrastructure/FileWriter')
|
|||
const async = require('async')
|
||||
const fs = require('fs')
|
||||
const util = require('util')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const request = require('request')
|
||||
const requestPromise = require('request-promise-native')
|
||||
const settings = require('@overleaf/settings')
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = {
|
||||
saveTemplateDataInSession(req, res, next) {
|
||||
|
|
|
@ -3,7 +3,7 @@ let parseParams
|
|||
const TpdsUpdateHandler = require('./TpdsUpdateHandler')
|
||||
const UpdateMerger = require('./UpdateMerger')
|
||||
const Errors = require('../Errors/Errors')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Path = require('path')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const NotificationsBuilder = require('../Notifications/NotificationsBuilder')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const { callbackify } = require('util')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandler')
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const ProjectEntityHandler = require('../Project/ProjectEntityHandler')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const UpdateMerger = require('./UpdateMerger')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const NotificationsBuilder = require('../Notifications/NotificationsBuilder')
|
||||
const ProjectCreationHandler = require('../Project/ProjectCreationHandler')
|
||||
const ProjectDeleter = require('../Project/ProjectDeleter')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const { ObjectId } = require('mongodb')
|
||||
const _ = require('lodash')
|
||||
const { callbackify } = require('util')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const path = require('path')
|
||||
const request = require('request-promise-native')
|
||||
|
|
|
@ -16,7 +16,7 @@ const OError = require('@overleaf/o-error')
|
|||
const _ = require('underscore')
|
||||
const async = require('async')
|
||||
const fs = require('fs')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const EditorController = require('../Editor/EditorController')
|
||||
const FileTypeManager = require('../Uploads/FileTypeManager')
|
||||
const FileWriter = require('../../infrastructure/FileWriter')
|
||||
|
|
|
@ -2,7 +2,7 @@ const AuthenticationController = require('../Authentication/AuthenticationContro
|
|||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const TokenAccessHandler = require('./TokenAccessHandler')
|
||||
const Errors = require('../Errors/Errors')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const settings = require('@overleaf/settings')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const { expressify } = require('../../util/promises')
|
||||
|
|
|
@ -3,7 +3,7 @@ const PublicAccessLevels = require('../Authorization/PublicAccessLevels')
|
|||
const PrivilegeLevels = require('../Authorization/PrivilegeLevels')
|
||||
const { ObjectId } = require('mongodb')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const V1Api = require('../V1/V1Api')
|
||||
const crypto = require('crypto')
|
||||
const { promisifyAll } = require('../../util/promises')
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const fs = require('fs')
|
||||
|
|
|
@ -5,7 +5,7 @@ const EditorController = require('../Editor/EditorController')
|
|||
const Errors = require('../Errors/Errors')
|
||||
const FileTypeManager = require('./FileTypeManager')
|
||||
const SafePath = require('../Project/SafePath')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = {
|
||||
addEntity: callbackify(addEntity),
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
let ProjectUploadController
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const fs = require('fs')
|
||||
const Path = require('path')
|
||||
|
|
|
@ -14,7 +14,7 @@ const ProjectRootDocManager = require('../Project/ProjectRootDocManager')
|
|||
const ProjectDetailsHandler = require('../Project/ProjectDetailsHandler')
|
||||
const ProjectDeleter = require('../Project/ProjectDeleter')
|
||||
const TpdsProjectFlusher = require('../ThirdPartyDataStore/TpdsProjectFlusher')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
module.exports = {
|
||||
createProjectFromZipArchive: callbackify(createProjectFromZipArchive),
|
||||
|
|
|
@ -8,7 +8,7 @@ const SubscriptionLocator = require('../Subscription/SubscriptionLocator')
|
|||
const UserAuditLogHandler = require('../User/UserAuditLogHandler')
|
||||
const UserGetter = require('../User/UserGetter')
|
||||
const UserUpdater = require('../User/UserUpdater')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const { User } = require('../../models/User')
|
||||
|
||||
async function _addAuditLogEntry(
|
||||
|
|
|
@ -4,7 +4,7 @@ const EmailHandler = require(`${APP_ROOT}/Features/Email/EmailHandler`)
|
|||
const EmailOptionsHelper = require(`${APP_ROOT}/Features/Email/EmailOptionsHelper`)
|
||||
const Errors = require('../Errors/Errors')
|
||||
const _ = require('lodash')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const settings = require('@overleaf/settings')
|
||||
const { User } = require(`${APP_ROOT}/models/User`)
|
||||
|
|
|
@ -4,7 +4,7 @@ const UserGetter = require('./UserGetter')
|
|||
const { User } = require('../../models/User')
|
||||
const NewsletterManager = require('../Newsletter/NewsletterManager')
|
||||
const UserRegistrationHandler = require('./UserRegistrationHandler')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const AuthenticationManager = require('../Authentication/AuthenticationManager')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const util = require('util')
|
||||
const { AffiliationError } = require('../Errors/Errors')
|
||||
const Features = require('../../infrastructure/Features')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const { callbackify } = require('util')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const moment = require('moment')
|
||||
const { User } = require('../../models/User')
|
||||
const { DeletedUser } = require('../../models/DeletedUser')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
const UserGetter = require('./UserGetter')
|
||||
const UserUpdater = require('./UserUpdater')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const { callbackify } = require('util')
|
||||
const { db } = require('../../infrastructure/mongodb')
|
||||
const metrics = require('@overleaf/metrics')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const moment = require('moment')
|
||||
const settings = require('@overleaf/settings')
|
||||
const { promisifyAll } = require('../../util/promises')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const UserGetter = require('./UserGetter')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const UserSessionsManager = require('./UserSessionsManager')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const AuthenticationController = require('../Authentication/AuthenticationController')
|
||||
const SessionManager = require('../Authentication/SessionManager')
|
||||
|
|
|
@ -4,7 +4,7 @@ const UserGetter = require('./UserGetter')
|
|||
const AuthenticationManager = require('../Authentication/AuthenticationManager')
|
||||
const NewsletterManager = require('../Newsletter/NewsletterManager')
|
||||
const async = require('async')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const crypto = require('crypto')
|
||||
const EmailHandler = require('../Email/EmailHandler')
|
||||
const OneTimeTokenHandler = require('../Security/OneTimeTokenHandler')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const OError = require('@overleaf/o-error')
|
||||
const Settings = require('@overleaf/settings')
|
||||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const Async = require('async')
|
||||
const _ = require('underscore')
|
||||
const { promisify } = require('util')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const logger = require('@overleaf/logger')
|
||||
const logger = require('logger-sharelatex')
|
||||
const OError = require('@overleaf/o-error')
|
||||
const { db } = require('../../infrastructure/mongodb')
|
||||
const { normalizeQuery } = require('../Helpers/Mongo')
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue