Fixes, refactor, a lot of things happen
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
package app
|
||||
|
||||
import "log"
|
||||
import (
|
||||
"log"
|
||||
)
|
||||
|
||||
const AppName = "identity-svc"
|
||||
|
||||
func Panic(v ...any) {
|
||||
log.Panicln(Name+":", v)
|
||||
log.Panicln(AppName+":", v)
|
||||
}
|
||||
|
||||
func Panicf(format string, v ...any) {
|
||||
log.Panicf(Name+": "+format, v...)
|
||||
log.Panicf(AppName+": "+format, v...)
|
||||
}
|
||||
|
||||
func Panicln(v ...any) {
|
||||
v = append([]any{Name + ":"}, v...)
|
||||
v = append([]any{AppName + ":"}, v...)
|
||||
log.Panicln(v...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user