Browse Source

Removed dependency on revel

Dmitry Yu Okunev 4 years ago
parent
commit
8e888cc211
1 changed files with 2 additions and 3 deletions
  1. 2 3
      formular.go

+ 2 - 3
formular.go

@@ -5,7 +5,6 @@ package asuModels
 import (
 	"database/sql"
 	"fmt"
-	"github.com/revel/revel"
 	"github.com/xaionaro-go/extime"
 	"html/template"
 	"strings"
@@ -87,7 +86,7 @@ func (f *Formular) PrepareUnit() *Formular {
 	var err error
 	f.unit, err = UnitSQL.First(Unit{Id: f.UnitId})
 	if err != nil && err != sql.ErrNoRows {
-		revel.ERROR.Printf("Got error: %v", err.Error())
+		//revel.ERROR.Printf("Got error: %v", err.Error())
 		return f
 	}
 	f.unitReady = true
@@ -109,7 +108,7 @@ func (f *Formular) PreparePerson() *Formular {
 	var err error
 	f.person, err = PersonSQL.First(Person{EmpGUID: f.EmpGUID})
 	if err != nil && err != sql.ErrNoRows {
-		revel.ERROR.Printf("Got error: %v", err.Error())
+		//revel.ERROR.Printf("Got error: %v", err.Error())
 		return f
 	}
 	f.personReady = true