Fix null pointer exception

This commit is contained in:
Александр Федорюк 2022-12-02 15:17:50 +03:00
parent 900ac54afb
commit 823f856154
1 changed files with 4 additions and 0 deletions

View File

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