Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/logger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ const REDACT_PATHS = [
/**
* Determine if pretty printing should be enabled
* Auto-detects based on NODE_ENV
* Bundled binaries default to production mode (no pretty printing)
*/
function shouldUsePretty(): boolean {
Comment thread
amondnet marked this conversation as resolved.
const env = process.env.NODE_ENV ?? 'development'
// Check if running as bundled binary (Bun.embeddedFiles exists in compiled binaries)
const isBundled = typeof Bun !== 'undefined' && 'embeddedFiles' in Bun
const env = process.env.NODE_ENV ?? (isBundled ? 'production' : 'development')
return env !== 'production'
Comment thread
amondnet marked this conversation as resolved.
}

Expand Down