Skip to content

Commit

Permalink
feat: logs only stored in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
0PandaDEV authored Dec 5, 2024
1 parent d183206 commit 5f1b8c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ import thumbnailRouter from './routes/thumbnail';
const app = express();
const port = 3000;

const isDevelopment = process.env.NODE_ENV === 'development';

export const log = (message: string) => {
if (isDevelopment) {
console.log(`[${new Date().toLocaleString()}] ${message}`);
}
console.log(`[${new Date().toLocaleString()}] ${message}`);
};

app.use(express.json());
Expand Down

0 comments on commit 5f1b8c0

Please sign in to comment.