[MM-54522] Add trial info to log + support packet (#24596)
Automatic Merge
Этот коммит содержится в:
@@ -9,6 +9,7 @@ import (
|
||||
"os"
|
||||
"runtime"
|
||||
"runtime/pprof"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -111,9 +112,11 @@ func (a *App) generateSupportPacketYaml(c *request.Context) (*model.FileData, er
|
||||
|
||||
licenseTo := ""
|
||||
supportedUsers := 0
|
||||
var isTrial bool
|
||||
if license := a.Srv().License(); license != nil {
|
||||
supportedUsers = *license.Features.Users
|
||||
licenseTo = license.Customer.Company
|
||||
isTrial = license.IsTrial
|
||||
}
|
||||
|
||||
/* Jobs */
|
||||
@@ -183,6 +186,7 @@ func (a *App) generateSupportPacketYaml(c *request.Context) (*model.FileData, er
|
||||
/* License */
|
||||
LicenseTo: licenseTo,
|
||||
LicenseSupportedUsers: supportedUsers,
|
||||
LicenseIsTrial: strconv.FormatBool(isTrial),
|
||||
|
||||
/* Server stats */
|
||||
ActiveUsers: int(uniqueUserCount),
|
||||
|
||||
Ссылка в новой задаче
Block a user