Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可配置显示分片执行SQL、MasterSlave等日志 #560

Closed
LilyBlooper opened this issue Jan 16, 2018 · 2 comments
Closed

可配置显示分片执行SQL、MasterSlave等日志 #560

LilyBlooper opened this issue Jan 16, 2018 · 2 comments

Comments

@LilyBlooper
Copy link

LilyBlooper commented Jan 16, 2018

Which version of Sharding-Jdbc do you using?

2.0.1

Expected behavior

DEBUG模式,或者提供某个开关。
能够打印 shard,master-slave 等 路由信息。
我方可以确定具体某个sql 从哪里走

Actual behavior

DEBUG模式下, 打印的只是某个 MasterSlaveDatesource@xxxx 实例。
没有复写 toString 方法。 或者我用的不对

Steps to reproduce the behavior

任意SQL,我是只配了主从。

Please provide the reproduce example codes (such as github link) if possible.

不需要

我看了之前有个关闭的issue : 256

是不是需要依赖skywalk 这套 apm系统?
我看了 1.5.0.M2 ,没有发现相关提示或者文档位置

@terrymanu
Copy link
Member

已经关闭的issue,功能当然是已实现。请阅读文档,查询sql.show相关关键字

@YooLin
Copy link

YooLin commented May 11, 2018

如果是只配置读写分离,那么即便配置了sql.show=true也不会打印日志吧,找了下源码也没翻到 @terrymanu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants