Skip to content

Commit 2855ec0

Browse files
authored
removed servererror, improved logging (#2147)
<!-- 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 -->
2 parents 8416a0d + 6a6809f commit 2855ec0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+638
-16039
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ dist
2020
.sentryclirc
2121
*.map
2222
out/*
23-
*.junit.xml
2423
mcos.junit.xml
24+
package-lock.json

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test:
3535

3636

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

4040
prod_node:
4141
docker-compose --file docker-compose.yml up -d --build

instrument.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Sentry.init({
1212
// for finer control
1313
tracesSampleRate: 1.0,
1414
profilesSampleRate: 1.0, // Profiling sample rate is relative to tracesSampleRate
15-
debug: true,
1615
});
1716

1817

0 commit comments

Comments
 (0)