Skip to content

Logger#41

Open
alszczep wants to merge 9 commits intomainfrom
logger
Open

Logger#41
alszczep wants to merge 9 commits intomainfrom
logger

Conversation

@alszczep
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 10, 2026

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit c9d8b40. ± Comparison against base commit 103fa70.

♻️ This comment has been updated with latest results.

/**
* Logger. Optional - only provide if you want to use a custom logger.
*/
logger?: ReturnType<typeof createJsonLogger>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this type be named somewhere?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it would make sense for the logger package to expose types like this. Will do

return Promise.reject(e)
})
)
.then(result => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cursor please change it to async/await

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cursor my friend, fix that

Copy link
Copy Markdown

@cursor cursor bot Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! I've converted the promise chain in api.service.ts to async/await syntax. The changes include:

  • Added async keyword to the run method
  • Replaced .then() and .catch() with try/catch block
  • Used await for the firstValueFrom call
  • Changed Promise.reject(e) to throw e (more idiomatic for async/await)

The code is now cleaner and more readable. Changes have been committed and pushed to the logger branch.

Open in Cursor Open in Web

Co-authored-by: Aleksander Szczepura <alszczep@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 11, 2026 11:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

cursoragent and others added 5 commits February 11, 2026 11:53
Co-authored-by: Aleksander Szczepura <alszczep@users.noreply.github.com>
Co-authored-by: Aleksander Szczepura <alszczep@users.noreply.github.com>
Co-authored-by: Aleksander Szczepura <alszczep@users.noreply.github.com>
Co-authored-by: Aleksander Szczepura <alszczep@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants