Skip to content

Commit

Permalink
#689 Additional PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Budlee committed Jan 31, 2025
1 parent a0caee0 commit 7303b98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli/src/server/cli-server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import express, { Application } from 'express';
import { CLIServerRoutes } from './routes/routes';
import { initLogger } from '@finos/calm-shared';

export function startServer(options: { port: string, schemaDirectory: string, verbose: boolean }) {
const app: Application = express();
Expand All @@ -12,6 +13,7 @@ export function startServer(options: { port: string, schemaDirectory: string, ve
const port = options.port;

app.listen(port, () => {
console.log(`CALM Server is running on http://localhost:${port}`);
const logger = initLogger(options.verbose);
logger.info(`CALM Server is running on http://localhost:${port}`);
});
}
1 change: 0 additions & 1 deletion cli/src/server/routes/health-route.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe('HealthRouter', () => {
test('should return 200 for health check', async () => {
const response = await request(app)
.get('/health');
console.log('123123'+JSON.stringify(response));
expect(response.status).toBe(200);
expect(response.body).toEqual({ status: 'OK' });
});
Expand Down

0 comments on commit 7303b98

Please sign in to comment.