Skip to content

improve error logging#6

Merged
uziins merged 2 commits intostablefrom
main
Sep 8, 2025
Merged

improve error logging#6
uziins merged 2 commits intostablefrom
main

Conversation

@uziins
Copy link
Owner

@uziins uziins commented Sep 8, 2025

This pull request focuses on improving error handling and logging in the MySQL connection pool implementation. The main changes include switching all logging from console.log to console.error for errors, streamlining and removing unnecessary log statements, and making minor updates to the package version.

Error handling and logging improvements:

  • Changed all error-related log statements in lib/mysql.js from console.log to console.error for better visibility and consistency. [1] [2] [3] [4]
  • Removed non-essential and verbose console.log statements throughout connection, keep-alive, and shutdown logic to reduce noise and simplify output. [1] [2]

Retry and health check logic:

  • Streamlined retry logic in retryQuery by removing redundant comments and log statements, and clarified error handling.
  • Simplified health check code by removing unnecessary comments and improving error reporting. [1] [2]

Version update:

  • Bumped package version from 1.2.1 to 1.2.2 in package.json to reflect these improvements.

uziins and others added 2 commits September 8, 2025 16:13
Refactor MySQL connection handling; improve error logging and streaml…
@uziins uziins merged commit 5576d5c into stable Sep 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant