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

日志问题 #17

Open
henrywendy opened this issue Sep 6, 2018 · 4 comments
Open

日志问题 #17

henrywendy opened this issue Sep 6, 2018 · 4 comments

Comments

@henrywendy
Copy link

你们 想问一下 集成这个插件 在执行数据库操作的时候 怎么通过日志输出来获取数据源 是执行的read 还是 write 库的呢,希望通过日志输出来获取到 本次操作的数据库连接地址来确认本次datasource 是正确的额

@chenlei2
Copy link
Owner

一个事务里面,有读,有写,一个事务里面就有多个数据源。你是说把每个数据库调用都把读写数据源打印出来吗/。

@henrywendy
Copy link
Author

一个事务里面,有读,有写,一个事务里面就有多个数据源。你是说把每个数据库调用都把读写数据源打印出来吗/。

嗯。是这个意思,我看了一下源码 日志级别设置为debug 模式 输出的日志比较少,

@henrywendy
Copy link
Author

一个事务里面,有读,有写,一个事务里面就有多个数据源。你是说把每个数据库调用都把读写数据源打印出来吗/。

嗯。是这个意思,我看了一下源码 日志级别设置为debug 模式 输出的日志比较少,

还有一个问题 是 我们在实际应用中 会报no operations allowed after connection 这个Exception 这个主要是 在配置文件中 没有添加 validationQuery 这个参数,你可以在配置文件中把这个加一下说明,

@chenlei2
Copy link
Owner

我添加了 强制写库 ,读库,写库的日志,其他问题,你可以帮忙修改提交

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

No branches or pull requests

2 participants