mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-03 09:58:30 +00:00
@@ -94,7 +94,7 @@ func Errorf(format string, a ...interface{}) error {
|
||||
return fmt.Errorf(format, a...)
|
||||
}
|
||||
|
||||
// Panicf prints logging plus stack trace. This should be used only for unrecoverble error
|
||||
// Panicf prints logging plus stack trace. This should be used only for unrecoverable error
|
||||
func Panicf(format string, a ...interface{}) {
|
||||
printf(PanicLevel, format, a...)
|
||||
printf(PanicLevel, "========= Stack trace output ========")
|
||||
|
@@ -42,13 +42,13 @@ var _ = Describe("logging operations", func() {
|
||||
It("Check file setter with empty", func() {
|
||||
SetLogFile("/tmp/foobar.logging")
|
||||
Expect(loggingW).NotTo(Equal(nil))
|
||||
// check file existance
|
||||
// check file existence
|
||||
})
|
||||
|
||||
It("Check file setter with bad filepath", func() {
|
||||
SetLogFile("/invalid/filepath")
|
||||
Expect(loggingW).NotTo(Equal(nil))
|
||||
// check file existance
|
||||
// check file existence
|
||||
})
|
||||
|
||||
It("Check loglevel setter", func() {
|
||||
|
Reference in New Issue
Block a user