main logger

This commit is contained in:
mr
2024-07-18 17:55:27 +02:00
parent 3e9eae007b
commit 0a441cd3df
7 changed files with 40 additions and 25 deletions

View File

@@ -20,7 +20,7 @@ var models = map[string]func() utils.DBObject{
}
func Model(model int) utils.DBObject {
log := logs.CreateLogger("oclib", "")
log := logs.GetLogger()
if _, ok := models[r.FromInt(model)]; ok {
return models[r.FromInt(model)]()
}