mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-24 14:47:39 +00:00
Improve logging
This commit is contained in:
parent
0b2f675e78
commit
c980efaafd
2 changed files with 10 additions and 1 deletions
|
|
@ -181,6 +181,14 @@ export class TerminalLifecycleManager {
|
|||
// Update terminal dimensions for display
|
||||
const { cols, rows, isMobile, isHeightOnlyChange, source } = customEvent.detail;
|
||||
|
||||
// Debug logging for terminal resize events
|
||||
logger.debug('Terminal resize event:', {
|
||||
cols,
|
||||
rows,
|
||||
source,
|
||||
sessionId: this.session?.id,
|
||||
});
|
||||
|
||||
// Notify the session view to update its state
|
||||
if (this.stateCallbacks) {
|
||||
this.stateCallbacks.updateTerminalDimensions(cols, rows);
|
||||
|
|
|
|||
|
|
@ -1196,7 +1196,8 @@ export function createSessionRoutes(config: SessionRoutesConfig): Router {
|
|||
return res.status(400).json({ error: 'Cols and rows must be between 1 and 1000' });
|
||||
}
|
||||
|
||||
logger.log(chalk.blue(`resizing session ${sessionId} to ${cols}x${rows}`));
|
||||
// Log resize requests at debug level
|
||||
logger.debug(`Resizing session ${sessionId} to ${cols}x${rows}`);
|
||||
|
||||
try {
|
||||
// If in HQ mode, check if this is a remote session
|
||||
|
|
|
|||
Loading…
Reference in a new issue