GRA-414: add verbose level 4

This commit is contained in:
Abhishek Kondur 2022-07-14 01:22:17 +04:00 committed by Matthew R. Kasun
parent 404bf4e335
commit 53af1900a8
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ func Log(verbosity int, message ...string) {
var currentTime = time.Now()
var currentMessage = MakeString(" ", message...)
if int32(verbosity) >= 4 {
if getVerbose() >= 4 {
pc, file, line, ok := runtime.Caller(1)
if !ok {
file = "?"

View file

@ -22,7 +22,7 @@ func MakeString(delimeter string, message ...string) string {
}
func getVerbose() int32 {
if Verbosity >= 1 && Verbosity <= 3 {
if Verbosity >= 1 && Verbosity <= 4 {
return int32(Verbosity)
}
Verbosity = int(servercfg.GetVerbosity())

View file

@ -369,7 +369,7 @@ func GetVerbosity() int32 {
} else if config.Config.Server.Verbosity != 0 {
verbosity = int(config.Config.Server.Verbosity)
}
if verbosity < 0 || verbosity > 3 {
if verbosity < 0 || verbosity > 4 {
verbosity = 0
}
return int32(verbosity)