fix(logger): Preserve logbox width after logBoxEnd so that subsequent logBoxLine calls continue using the set width.
This commit is contained in:
parent
00afa317ef
commit
456351ca34
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-03-26 - 2.6.17 - fix(logger)
|
||||||
|
Preserve logbox width after logBoxEnd so that subsequent logBoxLine calls continue using the set width.
|
||||||
|
|
||||||
|
- Removed the reset of currentBoxWidth in logBoxEnd to allow persistent width across logbox calls.
|
||||||
|
- Ensures that logBoxLine uses the previously set width when no new width is provided.
|
||||||
|
|
||||||
## 2025-03-26 - 2.6.16 - fix(cli)
|
## 2025-03-26 - 2.6.16 - fix(cli)
|
||||||
Improve CLI logging consistency by replacing direct console output with unified logger calls.
|
Improve CLI logging consistency by replacing direct console output with unified logger calls.
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@serve.zone/nupst',
|
name: '@serve.zone/nupst',
|
||||||
version: '2.6.16',
|
version: '2.6.17',
|
||||||
description: 'Node.js UPS Shutdown Tool for SNMP-enabled UPS devices'
|
description: 'Node.js UPS Shutdown Tool for SNMP-enabled UPS devices'
|
||||||
}
|
}
|
||||||
|
@ -112,9 +112,6 @@ export class Logger {
|
|||||||
|
|
||||||
// Create the bottom border: └────────┘
|
// Create the bottom border: └────────┘
|
||||||
console.log(`└${'─'.repeat(boxWidth - 2)}┘`);
|
console.log(`└${'─'.repeat(boxWidth - 2)}┘`);
|
||||||
|
|
||||||
// Reset the current box width
|
|
||||||
this.currentBoxWidth = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user