The variable log_warnings is also stated as session level by when changing the variable session-level. It doesn't log for the connection changed for the session level. In the below example, the connection id 67 was not logged in the error log.
MariaDB [(none)]> show global variables like 'log%war%';
ERROR 2006 (HY000): Server has gone away
No connection. Trying to reconnect...
Connection id: 68
Current database: *** NONE ***
Pandikrishnan Gurusamy
added a comment - The variable log_warnings is also stated as session level by when changing the variable session-level. It doesn't log for the connection changed for the session level. In the below example, the connection id 67 was not logged in the error log.
MariaDB [(none)]> select @@log_warnings;
+----------------+
| @@log_warnings |
+----------------+
| 2 |
+----------------+
1 row in set (0.002 sec)
MariaDB [(none)]> set log_warnings=9;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> show processlist;
+----+------+-----------+------+---------+------+----------+------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+----+------+-----------+------+---------+------+----------+------------------+----------+
| 67 | root | localhost | NULL | Query | 0 | starting | show processlist | 0.000 |
+----+------+-----------+------+---------+------+----------+------------------+----------+
1 row in set (0.000 sec)
MariaDB [(none)]> kill 67;
ERROR 1927 (70100): Connection was killed
MariaDB [(none)]> show global variables like 'log%war%';
ERROR 2006 (HY000): Server has gone away
No connection. Trying to reconnect...
Connection id: 68
Current database: *** NONE ***
Thanks serg. Our doc also states log_warnings is a session-level variable, but it doesn't take any effect for session-level changes. Pls, find the first comment in this ticket.
Pandikrishnan Gurusamy
added a comment - Thanks serg . Our doc also states log_warnings is a session-level variable, but it doesn't take any effect for session-level changes. Pls, find the first comment in this ticket.
"Aborted connection" warning is controlled by the global value of log_warnings, any session changes won't affect it. Other warnings are affected by it, though
Sergei Golubchik
added a comment - - edited "Aborted connection" warning is controlled by the global value of log_warnings, any session changes won't affect it. Other warnings are affected by it, though
People
Ian Gilfillan
Pandikrishnan Gurusamy
Votes:
0Vote for this issue
Watchers:
4Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":952.2000002861023,"ttfb":343.5,"pageVisibility":"visible","entityId":128119,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0eef0ec7-bc8b-4c75-af24-ea2968acfd47","navigationType":0,"readyForUser":1056.0999999046326,"redirectCount":0,"resourceLoadedEnd":986.8000001907349,"resourceLoadedStart":348.7000002861023,"resourceTiming":[{"duration":125.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":348.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":348.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":474.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":125.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":348.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":348.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":474.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":176.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/c54b129276d75dc2a3460e1d78f37913-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":349.09999990463257,"connectEnd":349.09999990463257,"connectStart":349.09999990463257,"domainLookupEnd":349.09999990463257,"domainLookupStart":349.09999990463257,"fetchStart":349.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":349.09999990463257,"responseEnd":525.5,"responseStart":525.5,"secureConnectionStart":349.09999990463257},{"duration":277.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/f867843cd2fdb209d4d1d4f760f86346-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":349.2000002861023,"connectEnd":349.2000002861023,"connectStart":349.2000002861023,"domainLookupEnd":349.2000002861023,"domainLookupStart":349.2000002861023,"fetchStart":349.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":349.2000002861023,"responseEnd":626.9000000953674,"responseStart":626.9000000953674,"secureConnectionStart":349.2000002861023},{"duration":281.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/ffdb17665775c5b4d6f097f3974ee359-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":349.30000019073486,"connectEnd":349.30000019073486,"connectStart":349.30000019073486,"domainLookupEnd":349.30000019073486,"domainLookupStart":349.30000019073486,"fetchStart":349.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":349.30000019073486,"responseEnd":630.7000002861023,"responseStart":630.7000002861023,"secureConnectionStart":349.30000019073486},{"duration":282.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":349.30000019073486,"connectEnd":349.30000019073486,"connectStart":349.30000019073486,"domainLookupEnd":349.30000019073486,"domainLookupStart":349.30000019073486,"fetchStart":349.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":349.30000019073486,"responseEnd":631.4000000953674,"responseStart":631.4000000953674,"secureConnectionStart":349.30000019073486},{"duration":282.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":349.40000009536743,"connectEnd":349.40000009536743,"connectStart":349.40000009536743,"domainLookupEnd":349.40000009536743,"domainLookupStart":349.40000009536743,"fetchStart":349.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":349.40000009536743,"responseEnd":631.9000000953674,"responseStart":631.9000000953674,"secureConnectionStart":349.40000009536743},{"duration":282.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":349.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":349.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":632.5,"responseStart":0,"secureConnectionStart":0},{"duration":282.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":349.59999990463257,"connectEnd":349.59999990463257,"connectStart":349.59999990463257,"domainLookupEnd":349.59999990463257,"domainLookupStart":349.59999990463257,"fetchStart":349.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":349.59999990463257,"responseEnd":632.5,"responseStart":632.5,"secureConnectionStart":349.59999990463257},{"duration":283.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":349.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":349.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":633,"responseStart":0,"secureConnectionStart":0},{"duration":283.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":349.90000009536743,"connectEnd":349.90000009536743,"connectStart":349.90000009536743,"domainLookupEnd":349.90000009536743,"domainLookupStart":349.90000009536743,"fetchStart":349.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":349.90000009536743,"responseEnd":633.2000002861023,"responseStart":633.2000002861023,"secureConnectionStart":349.90000009536743},{"duration":418,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":355.59999990463257,"connectEnd":355.59999990463257,"connectStart":355.59999990463257,"domainLookupEnd":355.59999990463257,"domainLookupStart":355.59999990463257,"fetchStart":355.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":355.59999990463257,"responseEnd":773.5999999046326,"responseStart":773.5999999046326,"secureConnectionStart":355.59999990463257},{"duration":614.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":355.90000009536743,"connectEnd":355.90000009536743,"connectStart":355.90000009536743,"domainLookupEnd":355.90000009536743,"domainLookupStart":355.90000009536743,"fetchStart":355.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":355.90000009536743,"responseEnd":970.2000002861023,"responseStart":970.2000002861023,"secureConnectionStart":355.90000009536743},{"duration":122.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":684.2000002861023,"connectEnd":684.2000002861023,"connectStart":684.2000002861023,"domainLookupEnd":684.2000002861023,"domainLookupStart":684.2000002861023,"fetchStart":684.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":684.2000002861023,"responseEnd":806.5,"responseStart":806.5,"secureConnectionStart":684.2000002861023},{"duration":78.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":908.5999999046326,"connectEnd":908.5999999046326,"connectStart":908.5999999046326,"domainLookupEnd":908.5999999046326,"domainLookupStart":908.5999999046326,"fetchStart":908.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":908.5999999046326,"responseEnd":986.8000001907349,"responseStart":986.8000001907349,"secureConnectionStart":908.5999999046326},{"duration":46.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":991.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":222,"responseStart":343,"responseEnd":354,"domLoading":347,"domInteractive":1115,"domContentLoadedEventStart":1115,"domContentLoadedEventEnd":1163,"domComplete":1200,"loadEventStart":1200,"loadEventEnd":1200,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1087},{"name":"bigPipe.sidebar-id.end","time":1088},{"name":"bigPipe.activity-panel-pipe-id.start","time":1088.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1090.3000001907349},{"name":"activityTabFullyLoaded","time":1181.7000002861023}],"measures":[],"correlationId":"fd50f2a3273c34","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The variable log_warnings is also stated as session level by when changing the variable session-level. It doesn't log for the connection changed for the session level. In the below example, the connection id 67 was not logged in the error log.
MariaDB [(none)]> select @@log_warnings;
+----------------+
| @@log_warnings |
+----------------+
| 2 |
+----------------+
1 row in set (0.002 sec)
MariaDB [(none)]> set log_warnings=9;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> show processlist;
+----+------+-----------+------+---------+------+----------+------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+----+------+-----------+------+---------+------+----------+------------------+----------+
| 67 | root | localhost | NULL | Query | 0 | starting | show processlist | 0.000 |
+----+------+-----------+------+---------+------+----------+------------------+----------+
1 row in set (0.000 sec)
MariaDB [(none)]> kill 67;
ERROR 1927 (70100): Connection was killed
MariaDB [(none)]> show global variables like 'log%war%';
ERROR 2006 (HY000): Server has gone away
No connection. Trying to reconnect...
Connection id: 68
Current database: *** NONE ***