klog/log_test.go

22 lines
371 B
Go
Raw Normal View History

2021-11-01 14:38:30 +00:00
package log
import "testing"
func TestError(t *testing.T) {
PROD = false
log := New()
log.system = "test"
log.Error("d", "sdf", "sdfsdf")
log.ErrorF(H{"Test": "set"}, "d", "sdf", "sdfsdf")
}
func TestErrorProd(t *testing.T) {
PROD = true
log := New()
log.system = "test"
log.Error("d", "sdf", "sdfsdf")
log.ErrorF(H{"Test": "set"}, "d", "sdf", "sdfsdf")
}