Skip to content

Commit

Permalink
add log for seed creation
Browse files Browse the repository at this point in the history
  • Loading branch information
coolchock committed Nov 14, 2024
1 parent 736882c commit 1c7b286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/routes/seeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {SeedGroup} from '../models/seedGroup';
import {SeedType} from '../seed/SeedManager';

import {DI} from '../server';
import {getOrStartNewMockServer} from './graphql';
import {logger} from '../utilities/logger';
import {getOrStartNewMockServer} from './graphql';

const router: Router = express.Router();

Expand Down Expand Up @@ -171,6 +171,7 @@ router.post('/seeds', async (req: Request, res: Response) => {
operationMatchArguments: operationMatchArguments,
operationName: operationName,
});
logger.api('Seed added successfully', {graphId, variantName});
res.status(201).json({message: 'Seed registered successfully'});
});

Expand Down

0 comments on commit 1c7b286

Please sign in to comment.