mirror of
https://github.com/kidoman/embd
synced 2024-12-23 05:10:05 +01:00
hal: log when host is registered
This commit is contained in:
parent
138c100f8d
commit
51ec19d6a1
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user