diff options
Diffstat (limited to 'server/controllers/api/server/logs.ts')
-rw-r--r-- | server/controllers/api/server/logs.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/server/controllers/api/server/logs.ts b/server/controllers/api/server/logs.ts index 4b543d686..39eceb654 100644 --- a/server/controllers/api/server/logs.ts +++ b/server/controllers/api/server/logs.ts | |||
@@ -1,14 +1,13 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { UserRight } from '../../../../shared/models/users' | ||
3 | import { asyncMiddleware, authenticate, ensureUserHasRight } from '../../../middlewares' | ||
4 | import { mtimeSortFilesDesc } from '../../../../shared/core-utils/logs/logs' | ||
5 | import { readdir, readFile } from 'fs-extra' | 2 | import { readdir, readFile } from 'fs-extra' |
6 | import { AUDIT_LOG_FILENAME, MAX_LOGS_OUTPUT_CHARACTERS, LOG_FILENAME } from '../../../initializers/constants' | ||
7 | import { join } from 'path' | 3 | import { join } from 'path' |
8 | import { getAuditLogsValidator, getLogsValidator } from '../../../middlewares/validators/logs' | 4 | import { logger, mtimeSortFilesDesc } from '@server/helpers/logger' |
9 | import { LogLevel } from '../../../../shared/models/server/log-level.type' | 5 | import { LogLevel } from '../../../../shared/models/server/log-level.type' |
6 | import { UserRight } from '../../../../shared/models/users' | ||
10 | import { CONFIG } from '../../../initializers/config' | 7 | import { CONFIG } from '../../../initializers/config' |
11 | import { logger } from '@server/helpers/logger' | 8 | import { AUDIT_LOG_FILENAME, LOG_FILENAME, MAX_LOGS_OUTPUT_CHARACTERS } from '../../../initializers/constants' |
9 | import { asyncMiddleware, authenticate, ensureUserHasRight } from '../../../middlewares' | ||
10 | import { getAuditLogsValidator, getLogsValidator } from '../../../middlewares/validators/logs' | ||
12 | 11 | ||
13 | const logsRouter = express.Router() | 12 | const logsRouter = express.Router() |
14 | 13 | ||