Skip to content

Commit

Permalink
removed servererror, improved logging (#2147)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
  - Enhanced logging output with improved readability.
- Introduced new exports for `CastanetResponse`, `generateShardList`,
and other functions to improve modularity and functionality.

- **Bug Fixes**
- Simplified error handling by replacing `ServerError` with standard
`Error`, improving clarity in error reporting across multiple
components.

- **Documentation**
- Updated logging configuration to use `ServerLogger` for better type
safety and clarity.

- **Refactor**
- Streamlined error handling and logging mechanisms throughout the
codebase, enhancing maintainability.
- Adjusted type definitions for logging parameters to improve
specificity.

- **Chores**
  - Removed unused imports and dependencies related to `ServerError`.
- Updated TypeScript configuration to include additional file patterns
for compilation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
drazisil authored Sep 19, 2024
2 parents 8416a0d + 6a6809f commit 2855ec0
Show file tree
Hide file tree
Showing 72 changed files with 638 additions and 16,039 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ dist
.sentryclirc
*.map
out/*
*.junit.xml
mcos.junit.xml
package-lock.json
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test:


start:
@pnpx tsx --import ./instrument.mjs --openssl-legacy-provider --env-file=.env server.ts
@pnpx tsx --import ./instrument.mjs --openssl-legacy-provider --env-file=.env server.ts | pnpx pino-pretty

prod_node:
docker-compose --file docker-compose.yml up -d --build
Expand Down
1 change: 0 additions & 1 deletion instrument.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Sentry.init({
// for finer control
tracesSampleRate: 1.0,
profilesSampleRate: 1.0, // Profiling sample rate is relative to tracesSampleRate
debug: true,
});


Loading

0 comments on commit 2855ec0

Please sign in to comment.