Bump version to 7.1.13
Enhanced error handling and logging improvements: - Standardized error messages across hooks and worker service - Platform-aware restart instructions (macOS, Linux, Windows) - Fixed false error logging from happy_path_error misuse - Timezone-aware logging (uses local machine timezone instead of UTC) - Comprehensive test coverage for error handling scenarios 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
+15
-1
@@ -131,6 +131,20 @@ class Logger {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Format timestamp in local timezone (YYYY-MM-DD HH:MM:SS.mmm)
|
||||
*/
|
||||
private formatTimestamp(date: Date): string {
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||
const ms = String(date.getMilliseconds()).padStart(3, '0');
|
||||
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}.${ms}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Core logging method
|
||||
*/
|
||||
@@ -143,7 +157,7 @@ class Logger {
|
||||
): void {
|
||||
if (level < this.getLevel()) return;
|
||||
|
||||
const timestamp = new Date().toISOString().replace('T', ' ').substring(0, 23);
|
||||
const timestamp = this.formatTimestamp(new Date());
|
||||
const levelStr = LogLevel[level].padEnd(5);
|
||||
const componentStr = component.padEnd(6);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user