Export raw bundles with collection logs and parser field snapshot
This commit is contained in:
@@ -19,6 +19,8 @@ var WebFS embed.FS
|
||||
type Config struct {
|
||||
Port int
|
||||
PreloadFile string
|
||||
AppVersion string
|
||||
AppCommit string
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
@@ -124,6 +126,20 @@ func (s *Server) GetRawExport() *RawExportPackage {
|
||||
return &cloned
|
||||
}
|
||||
|
||||
func (s *Server) ClientVersionString() string {
|
||||
s.mu.RLock()
|
||||
defer s.mu.RUnlock()
|
||||
v := s.config.AppVersion
|
||||
c := s.config.AppCommit
|
||||
if v == "" {
|
||||
v = "dev"
|
||||
}
|
||||
if c == "" {
|
||||
c = "none"
|
||||
}
|
||||
return fmt.Sprintf("LOGPile %s (commit: %s)", v, c)
|
||||
}
|
||||
|
||||
// SetDetectedVendor sets the detected vendor name
|
||||
func (s *Server) SetDetectedVendor(vendor string) {
|
||||
s.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user