expand config

This commit is contained in:
jurgis
2022-12-11 13:17:10 +02:00
parent 80ba785798
commit 0b438fb134
10 changed files with 72 additions and 36 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ import { NestMiddleware } from '@nestjs/common';
import { NextFunction } from 'express';
import { Request, Response } from 'express';
import { appendFile } from 'fs';
import { join } from 'path';
import { configService } from '../config/config.service';
export class RequestLogMiddleware implements NestMiddleware {
@@ -33,7 +32,7 @@ export class RequestLogMiddleware implements NestMiddleware {
private log(message: string) {
const strTime = new Date().toISOString();
const logFile = configService.getStaticRequestsLogPath();
const logFile = configService.getPaths().getStaticRequestsLogPath();
appendFile(logFile, strTime + ' ' + message + '\n', function (err) {
if (err) {
console.log('error logging ' + message);