Skip to content

Commit 581f592

Browse files
committed
Configure MySQL connector to log messages in slf4j.
See also: http://stackoverflow.com/questions/10903206/enabling-mysql-general-query-log-with-jdbc Related to #420
1 parent 24c8a49 commit 581f592

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/resources/application-prod.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spring.profiles: prod
22

3-
spring.datasource.url: jdbc:mysql://localhost:3306/mystamps
3+
spring.datasource.url: jdbc:mysql://localhost:3306/mystamps?logger=com.mysql.jdbc.log.Slf4JLogger
44
spring.datasource.username: mystamps
55
spring.datasource.password: q1
66
spring.datasource.driver-class-name: com.mysql.jdbc.Driver

src/main/resources/application-travis.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spring.profiles: travis
22

3-
spring.datasource.url: jdbc:mysql://localhost:3306/mystamps
3+
spring.datasource.url: jdbc:mysql://localhost:3306/mystamps?logger=com.mysql.jdbc.log.Slf4JLogger
44
spring.datasource.username: travis
55
spring.datasource.password:
66
spring.datasource.driver-class-name: com.mysql.jdbc.Driver

0 commit comments

Comments
 (0)