Fix null pointer exception
This commit is contained in:
parent
900ac54afb
commit
823f856154
|
@ -144,6 +144,10 @@ func (yt *YTLogger) preparePkg(level Priority, funcName, callID, callPrevID, cal
|
|||
size = &[]int64{0}[0]
|
||||
}
|
||||
|
||||
if msg == nil {
|
||||
msg = &[]string{""}[0]
|
||||
}
|
||||
|
||||
pkg = &log.Pkg{
|
||||
LogLevel: int32(level),
|
||||
TimeStart: &log.Time{
|
||||
|
|
Loading…
Reference in New Issue