1
0
mirror of https://github.com/kidoman/embd synced 2024-12-22 21:00:05 +01:00

hal: log when host is registered

This commit is contained in:
Karan Misra 2014-04-11 13:59:58 +05:30
parent 138c100f8d
commit 51ec19d6a1

View File

@ -5,6 +5,8 @@ package embd
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/golang/glog"
) )
// Descriptor represents a host descriptor. // Descriptor represents a host descriptor.
@ -31,6 +33,8 @@ func Register(host Host, describer Describer) {
panic("embd: describer already registered") panic("embd: describer already registered")
} }
describers[host] = describer describers[host] = describer
glog.V(1).Infof("embd: host %v is registered", host)
} }
var hostOverride Host var hostOverride Host