[MDEV-15] Log all SQL errors Created: 2011-11-24  Updated: 2012-03-24  Resolved: 2012-03-24

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: 5.5.22

Type: Task Priority: Blocker
Reporter: Rasmus Johansson (Inactive) Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: None


 Description   

quoting http://askmonty.org/worklog/?tid=177

I want to log all or a sample of errors on the server side into a new log file
(not general, error or slow query log) and into a file that can be rotated. In the
facebook patch I added code to sample query errors into the slow query log using -
-log-sample-error-rate:

  • when 0 do not sample
  • when 1 then log all errors
  • when > 1 then sample 1 of --log-sample-error-rate queries

This should have:

  • query text
  • username
  • timestamp
  • database
  • errno
  • error text
  • client IP

The log should support rotation and possibly auto-rotation when it reaches a
certain size.



 Comments   
Comment by Alexey Botchkov [ 2012-03-09 ]

Patch submitted:
http://lists.askmonty.org/pipermail/commits/2012-March/003102.html

Comment by Alexey Botchkov [ 2012-03-13 ]

Modified patch:
http://lists.askmonty.org/pipermail/commits/2012-March/003120.html

Comment by Sergei Golubchik [ 2012-03-24 ]

pushed

Generated at Thu Feb 08 06:25:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.