[MXS-1327] set log-priority by maxadmin Created: 2017-07-26  Updated: 2017-10-23  Resolved: 2017-10-23

Status: Closed
Project: MariaDB MaxScale
Component/s: maxadmin
Affects Version/s: 2.1.3
Fix Version/s: 2.2.1

Type: Bug Priority: Major
Reporter: make Yuan Assignee: Johan Wikman
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

Centsos 6.7



 Description   

set log-priority by maxadmin ,But I Found did not take effect!



 Comments   
Comment by Johan Wikman [ 2017-07-26 ]

Could you please provide some additional details.

  • What did you do?
  • What did you expect to happen?
  • What was the actual outcome?
Comment by make Yuan [ 2017-07-26 ]

max-admin

MaxScale> enable log-priority debug
MaxScale>

then
session b
mysql -u max -pmaxscale -h 192.168.143.188 -P4007 -e "select * from make.student limit 1"
----------------------------------+

id name name2 name3

----------------------------------+

16 pc06FAw4e6EEEsm2mrtq NULL NULL

----------------------------------+

**********************************************

[root@bogon log]# ll
total 0
rw-rr- 1 root root 0 Jul 26 14:57 maxscale.log
[root@bogon log]# tailf maxscale.log
nothing

**********************************************
global config

[maxscale]
threads=auto
auth_connect_timeout = 3
auth_read_timeout = 1
auth_write_timeout = 2
ms_timestamp=1
syslog=0
maxlog=1
logdir=/data/maxscale1/log
datadir=/data/maxscale1/data
cachedir=/data/maxscale1_cache
piddir=/data/maxscale1
libdir=/usr/local/maxscale-2.1.3/lib/maxscale

Comment by markus makela [ 2017-07-26 ]

This is caused by the fact that debug logging is only enabled for debug builds due to the high performance impact it can cause. The command should not be accepted on non-debug builds and it should return an error.

Comment by Johan Wikman [ 2017-10-19 ]

Changed into a bug-report.

Comment by Johan Wikman [ 2017-10-23 ]

Not a bug as debug messages are enabled only if MaxScale has been built in debug mode.

But now the user of maxadmin will get a warning about enabling debug logging having no effect if MaxScale is built in release mode.

Generated at Thu Feb 08 04:05:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.