[MM-54522] Add trial info to log + support packet (#24596)

Automatic Merge
Этот коммит содержится в:
Julien Tant
2023-10-26 12:22:22 -07:00
коммит произвёл GitHub
родитель 756765b9b4
Коммит 375404c12e
3 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@@ -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),