diff options
Diffstat (limited to 'gocui/structs.go')
| -rw-r--r-- | gocui/structs.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gocui/structs.go b/gocui/structs.go index d1fe381..5a8830a 100644 --- a/gocui/structs.go +++ b/gocui/structs.go @@ -15,6 +15,8 @@ import ( "sync" "strings" "github.com/awesome-gocui/gocui" + + "go.wit.com/log" ) // It's probably a terrible idea to call this 'me' @@ -181,7 +183,7 @@ func (w *guiWidget) Write(p []byte) (n int, err error) { func Set(ptr interface{}, tag string) error { if reflect.TypeOf(ptr).Kind() != reflect.Ptr { - log(logError, "Set() Not a pointer", ptr, "with tag =", tag) + log.Log(ERROR, "Set() Not a pointer", ptr, "with tag =", tag) return fmt.Errorf("Not a pointer") } @@ -203,7 +205,7 @@ func setField(field reflect.Value, defaultVal string, name string) error { // log("setField() Can't set value", field, defaultVal) return fmt.Errorf("Can't set value\n") } else { - log(true, "setField() Can set value", name, defaultVal) + log.Log(NOW, "setField() Can set value", name, defaultVal) } switch field.Kind() { |
