mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +00:00
fix: remove debug logging from cli.ts
Remove verbose module loading debug logs that were cluttering the output when running fwd command. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4a5052f425
commit
b8405b1ff5
1 changed files with 0 additions and 10 deletions
|
|
@ -9,12 +9,9 @@ import { VERSION } from './server/version.js';
|
|||
// Prevent double execution in SEA context where require.main might be undefined
|
||||
// Use a global flag to ensure we only run once
|
||||
if ((global as any).__vibetunnelStarted) {
|
||||
console.log('VibeTunnel already started, skipping duplicate execution');
|
||||
console.log('Global flag was already set, exiting to prevent duplicate server');
|
||||
process.exit(0);
|
||||
}
|
||||
(global as any).__vibetunnelStarted = true;
|
||||
console.log('Setting global flag to prevent duplicate execution');
|
||||
|
||||
// Handle uncaught exceptions
|
||||
process.on('uncaughtException', (error) => {
|
||||
|
|
@ -33,11 +30,6 @@ process.on('unhandledRejection', (reason, promise) => {
|
|||
|
||||
// Only execute if this is the main module (or in SEA where require.main is undefined)
|
||||
if (!module.parent && (require.main === module || require.main === undefined)) {
|
||||
console.log('Main module check passed, proceeding with server startup');
|
||||
console.log('module.parent:', module.parent);
|
||||
console.log('require.main === module:', require.main === module);
|
||||
console.log('require.main:', require.main);
|
||||
|
||||
if (process.argv[2] === 'version') {
|
||||
console.log(`VibeTunnel Server v${VERSION}`);
|
||||
process.exit(0);
|
||||
|
|
@ -50,6 +42,4 @@ if (!module.parent && (require.main === module || require.main === undefined)) {
|
|||
console.log('Starting VibeTunnel server...');
|
||||
startVibeTunnelServer();
|
||||
}
|
||||
} else {
|
||||
console.log('Not main module, skipping server startup');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue