mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 11:06:25 +08:00
d10dd12663
fix #15086 #### PR Dependency Tree * **PR #15087** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Console logging is now disabled in production builds to reduce unnecessary log output, while remaining enabled in development for debugging purposes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
8 lines
208 B
TypeScript
8 lines
208 B
TypeScript
import log from 'electron-log/main';
|
|
|
|
export const logger = log.scope('helper');
|
|
|
|
log.transports.file.level = 'info';
|
|
log.transports.console.level =
|
|
process.env.NODE_ENV === 'development' ? 'info' : false;
|