Refactor transaction logging to simple SLF4J use

This commit is contained in:
Robin Bygrave
2013-04-15 23:16:08 +12:00
parent b5ef07bab9
commit cbd7b5e912
60 changed files with 2976 additions and 4529 deletions
@@ -21,7 +21,7 @@ public class TestLogTransLogOnError extends TestCase {
Transaction t = Ebean.beginTransaction();
try {
t.log("--- hello");
//t.log("--- hello");
Ebean.find(Customer.class).findList();
Ebean.find(Order.class).where().gt("id", 1).findList();
@@ -31,7 +31,7 @@ public class TestLogTransLogOnError extends TestCase {
//Ebean.save(newBean);
t.log("--- next query should error");
//t.log("--- next query should error");
List<Customer> list = Ebean.find(Customer.class)
.where().eq("id", "NotAnInt!!")
.findList();
@@ -55,7 +55,7 @@ public class TestLogTransLogOnError extends TestCase {
Transaction t = Ebean.beginTransaction();
try {
t.log("--- hello testPersistError");
//t.log("--- hello testPersistError");
Ebean.find(Customer.class).findList();
EBasicVer newBean = new EBasicVer();
@@ -65,7 +65,7 @@ public class TestLogTransLogOnError extends TestCase {
+"dfjksdjflsjdflsjdflksjdfkjd fsjdfkjsdkfjsdkfjskdjfskjdf sjdf sdjflksjdfkjsdlfkjsdkfjs ");
newBean.setName("aName");
t.log("--- next insert should error");
//t.log("--- next insert should error");
Ebean.save(newBean);
// never get here