feat: include application version in logging output

This commit is contained in:
2025-01-22 17:32:45 -06:00
parent 116dfb0865
commit 6b0a556690

View File

@@ -8,6 +8,7 @@ import (
"os"
"s1d3sw1ped/SteamCache2/steamcache/avgcachestate"
"s1d3sw1ped/SteamCache2/steamcache/logger"
"s1d3sw1ped/SteamCache2/version"
"s1d3sw1ped/SteamCache2/vfs"
"s1d3sw1ped/SteamCache2/vfs/cache"
"s1d3sw1ped/SteamCache2/vfs/cachestate"
@@ -81,7 +82,7 @@ func New(address string, memorySize string, memoryMultiplier int, diskSize strin
}
func (sc *SteamCache) Run() {
logger.Logger.Info().Str("address", sc.address).Msg("listening")
logger.Logger.Info().Str("address", sc.address).Str("version", version.Version).Msg("listening")
sc.mu.Lock()
sc.dirty = true