Fix typos

Signed-off-by: 张祖建 <zhangzujian.7@gmail.com>
This commit is contained in:
张祖建
2021-09-10 20:50:23 +08:00
committed by Tomofumi Hayashi
parent ad257698ef
commit a28f5cb56c
11 changed files with 22 additions and 22 deletions

View File

@@ -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 ========")

View File

@@ -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() {