Skip to content

Commit

Permalink
Merge pull request #87 from depot/feat/log-snapshots
Browse files Browse the repository at this point in the history
feat: add more logging about messages from the API
  • Loading branch information
goller authored May 20, 2024
2 parents 4fa3781 + be3f4f7 commit 26a248b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/handlers/volumes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ async function handleAction(
case 'deleteClient':
return await deleteClient(action.value)
default:
console.log('Unknown action', action)
return null
}
}
Expand Down Expand Up @@ -132,6 +133,7 @@ async function copyVolume({
case CopyVolumeAction_Kind.CLONE:
return await cloneVolume(volumeName, parentImageSpec)
default:
console.log('Unknown copy volume kind', kind)
return null
}
}
Expand All @@ -143,6 +145,7 @@ async function snapshotVolume(
const parentImageSpec = newImageSpec(parentImage)
const snapshotSpec = snapshotFromImageSpec(parentImageSpec, volumeName)
await createSnapshot(snapshotSpec)
console.log('Created snapshot', snapshotSpec)

return {
update: {
Expand Down

0 comments on commit 26a248b

Please sign in to comment.