Skip to content

Commit

Permalink
initialize project tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 4, 2024
1 parent dd44ab8 commit 521cafd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/next-api/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ impl ProjectContainer {
}

impl ProjectContainer {
#[tracing::instrument(level = "info", name = "initialize project", skip_all)]
pub async fn initialize(self: Vc<Self>, options: ProjectOptions) -> Result<()> {
self.await?.options_state.set(Some(options));
let project = self.project();
Expand All @@ -210,6 +211,7 @@ impl ProjectContainer {
Ok(())
}

#[tracing::instrument(level = "info", name = "update project", skip_all)]
pub async fn update(self: Vc<Self>, options: PartialProjectOptions) -> Result<()> {
let PartialProjectOptions {
root_path,
Expand Down

0 comments on commit 521cafd

Please sign in to comment.