mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-26 15:07:39 +00:00
Comment out verbose debug logs for session tracking and buffer notifications
This commit is contained in:
parent
56589b8a0e
commit
10ce613c6b
4 changed files with 20 additions and 19 deletions
|
|
@ -74,10 +74,10 @@ class ServerManager {
|
|||
let mode = DashboardAccessMode(rawValue: rawValue) ?? .network
|
||||
|
||||
// Log for debugging
|
||||
logger
|
||||
.debug(
|
||||
"bindAddress getter: rawValue='\(rawValue)', mode=\(mode.rawValue), bindAddress=\(mode.bindAddress)"
|
||||
)
|
||||
// logger
|
||||
// .debug(
|
||||
// "bindAddress getter: rawValue='\(rawValue)', mode=\(mode.rawValue), bindAddress=\(mode.bindAddress)"
|
||||
// )
|
||||
|
||||
return mode.bindAddress
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ struct NewSessionForm: View {
|
|||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 16)
|
||||
}
|
||||
.frame(maxHeight: 400)
|
||||
.frame(minHeight: 400)
|
||||
|
||||
Divider()
|
||||
|
||||
|
|
@ -406,6 +406,7 @@ struct NewSessionForm: View {
|
|||
.padding(.vertical, 12)
|
||||
}
|
||||
.frame(width: 384)
|
||||
.frame(minHeight: 500)
|
||||
.background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 12))
|
||||
.clipShape(RoundedRectangle(cornerRadius: 12))
|
||||
.fixedSize(horizontal: true, vertical: false)
|
||||
|
|
|
|||
|
|
@ -79,11 +79,11 @@ export function createSessionRoutes(config: SessionRoutesConfig): Router {
|
|||
logger.debug(`[GET /sessions] Found ${localSessions.length} local sessions`);
|
||||
|
||||
// Log session names for debugging
|
||||
localSessions.forEach((session) => {
|
||||
logger.debug(
|
||||
`[GET /sessions] Session ${session.id}: name="${session.name || 'null'}", workingDir="${session.workingDir}"`
|
||||
);
|
||||
});
|
||||
// localSessions.forEach((session) => {
|
||||
// logger.debug(
|
||||
// `[GET /sessions] Session ${session.id}: name="${session.name || 'null'}", workingDir="${session.workingDir}"`
|
||||
// );
|
||||
// });
|
||||
|
||||
// Add source info to local sessions and detect Git info if missing
|
||||
const localSessionsWithSource = await Promise.all(
|
||||
|
|
@ -92,9 +92,9 @@ export function createSessionRoutes(config: SessionRoutesConfig): Router {
|
|||
if (!session.gitRepoPath && session.workingDir) {
|
||||
try {
|
||||
const gitInfo = await detectGitInfo(session.workingDir);
|
||||
logger.debug(
|
||||
`[GET /sessions] Detected Git info for session ${session.id}: repo=${gitInfo.gitRepoPath}, branch=${gitInfo.gitBranch}`
|
||||
);
|
||||
// logger.debug(
|
||||
// `[GET /sessions] Detected Git info for session ${session.id}: repo=${gitInfo.gitRepoPath}, branch=${gitInfo.gitBranch}`
|
||||
// );
|
||||
return {
|
||||
...session,
|
||||
...gitInfo,
|
||||
|
|
@ -615,9 +615,9 @@ export function createSessionRoutes(config: SessionRoutesConfig): Router {
|
|||
if (!session.gitRepoPath && session.workingDir) {
|
||||
try {
|
||||
const gitInfo = await detectGitInfo(session.workingDir);
|
||||
logger.debug(
|
||||
`[GET /sessions/:id] Detected Git info for session ${session.id}: repo=${gitInfo.gitRepoPath}, branch=${gitInfo.gitBranch}`
|
||||
);
|
||||
// logger.debug(
|
||||
// `[GET /sessions/:id] Detected Git info for session ${session.id}: repo=${gitInfo.gitRepoPath}, branch=${gitInfo.gitBranch}`
|
||||
// );
|
||||
res.json({ ...session, ...gitInfo });
|
||||
return;
|
||||
} catch (error) {
|
||||
|
|
|
|||
|
|
@ -1156,9 +1156,9 @@ export class TerminalManager {
|
|||
const listeners = this.bufferListeners.get(sessionId);
|
||||
if (!listeners || listeners.size === 0) return;
|
||||
|
||||
logger.debug(
|
||||
`Notifying ${listeners.size} buffer change listeners for session ${truncateForLog(sessionId)}`
|
||||
);
|
||||
// logger.debug(
|
||||
// `Notifying ${listeners.size} buffer change listeners for session ${truncateForLog(sessionId)}`
|
||||
// );
|
||||
|
||||
try {
|
||||
// Get full buffer snapshot
|
||||
|
|
|
|||
Loading…
Reference in a new issue