@timber-js/app 0.2.0-alpha.39 → 0.2.0-alpha.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timber-js/app",
3
- "version": "0.2.0-alpha.39",
3
+ "version": "0.2.0-alpha.40",
4
4
  "description": "Vite-native React framework built for Servers and Serverless Platforms — correct HTTP semantics, real status codes, pages that work without JavaScript",
5
5
  "keywords": [
6
6
  "cloudflare-workers",
@@ -78,7 +78,10 @@ export function createDefaultLogger(): TimberLogger {
78
78
  },
79
79
 
80
80
  info(msg: string, data?: Record<string, unknown>): void {
81
+ // info is suppressed by default — per-request lines are too noisy
82
+ // without a custom logger. Enable with TIMBER_DEBUG.
81
83
  if (isDevMode()) return;
84
+ if (!isDebug()) return;
82
85
  const fields = formatDataFields(data);
83
86
  process.stderr.write(`[timber] ${padLevel('INFO')} ${msg}${fields}\n`);
84
87
  },