Skip to content

Commit

Permalink
fix: Make logs info level for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Dec 4, 2024
1 parent 161c414 commit 9b3da7a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/job-dispatch/src/resource/upsert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export const upsertResources = async (
resourceIdentifiers,
);

log.debug("Envs before insert", {
log.info("Envs before insert", {
envs: envsBeforeInsert.map((e) => ({
id: e.id,
resources: e.resources.map((r) => r.identifier),
})),
});

log.debug("Inserting resources");
log.info("Inserting resources");
const resources = await insertResources(tx, resourcesToInsert);
const resourcesWithId = resources.all.map((r) => ({
...r,
Expand All @@ -61,20 +61,20 @@ export const upsertResources = async (
),
}));

log.debug("Inserting resource metadata and variables");
log.info("Inserting resource metadata and variables");
const [, updatedVariableResourceIds] = await Promise.all([
insertResourceMetadata(tx, resourcesWithId),
insertResourceVariables(tx, resourcesWithId),
]);

log.debug("Getting environments after insert");
log.info("Getting environments after insert");
const envsAfterInsert = await getEnvironmentsByResourceWithIdentifiers(
tx,
workspaceId,
resourceIdentifiers,
);

log.debug("Envs after insert", {
log.info("Envs after insert", {
envs: envsAfterInsert.map((e) => ({
id: e.id,
resources: e.resources.map((r) => r.identifier),
Expand Down

0 comments on commit 9b3da7a

Please sign in to comment.