From 24299dc5482ac8e805fd23c2cdb9b822098e233f Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Thu, 17 Oct 2024 17:01:53 -0400 Subject: [PATCH] lint --- app-shell-odd/src/log.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app-shell-odd/src/log.ts b/app-shell-odd/src/log.ts index 2fc9820cf2c..0c6a087be3f 100644 --- a/app-shell-odd/src/log.ts +++ b/app-shell-odd/src/log.ts @@ -6,23 +6,13 @@ import winston from 'winston' import { getConfig } from './config' -import Transport from 'winston-transport' +import type Transport from 'winston-transport' import type { Config } from './config' const ODD_DIR = '/data/ODD' const LOG_DIR = path.join(ODD_DIR, 'logs') const ERROR_LOG = path.join(LOG_DIR, 'error.log') const COMBINED_LOG = path.join(LOG_DIR, 'combined.log') -const FILE_OPTIONS = { - // JSON logs - format: winston.format.json(), - // 1 MB max log file size (to ensure emailablity) - maxsize: 1024 * 1024, - // keep 10 backups at most - maxFiles: 10, - // roll filenames in accending order (larger the number, older the log) - tailable: true, -} // Use our own logger type because winston (a) doesn't allow these by default // but (b) does it by binding something other than a function to these props.