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