mirror of
https://github.com/alexgo-io/redstone-cache-layer.git
synced 2026-01-12 16:53:15 +08:00
feat: logs
This commit is contained in:
1
.github/workflows/deploy-lambda-to-ecr.yml
vendored
1
.github/workflows/deploy-lambda-to-ecr.yml
vendored
@@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- lambda-with-metrics
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
@@ -94,6 +94,7 @@ export const packages = (router: Router) => {
|
||||
router.get(
|
||||
"/packages/latest",
|
||||
asyncHandler(async (req, res) => {
|
||||
console.log("Getting latest packages")
|
||||
const initialMongoQuery = {};
|
||||
return await findPackage(req, res, initialMongoQuery);
|
||||
})
|
||||
@@ -109,7 +110,7 @@ export const packages = (router: Router) => {
|
||||
if (!req.query.toTimestamp) {
|
||||
throw new Error("toTimestamp query param is required");
|
||||
}
|
||||
|
||||
console.log("Getting packages by timestamp")
|
||||
const initialMongoQuery = {
|
||||
timestamp: { $lte: req.query.toTimestamp },
|
||||
};
|
||||
|
||||
@@ -276,6 +276,7 @@ export const prices = (router: Router) => {
|
||||
eventProps: params,
|
||||
ip: getIp(req),
|
||||
});
|
||||
console.log("Getting prices")
|
||||
|
||||
// Getting provider details
|
||||
const providerDetails = await getProviderFromParams(params);
|
||||
|
||||
Reference in New Issue
Block a user