feat: include application version in logging output

This commit is contained in:
2025-01-22 17:32:45 -06:00
parent 09d3450738
commit c0ed8a590e

View File

@@ -8,6 +8,7 @@ import (
"os" "os"
"s1d3sw1ped/SteamCache2/steamcache/avgcachestate" "s1d3sw1ped/SteamCache2/steamcache/avgcachestate"
"s1d3sw1ped/SteamCache2/steamcache/logger" "s1d3sw1ped/SteamCache2/steamcache/logger"
"s1d3sw1ped/SteamCache2/version"
"s1d3sw1ped/SteamCache2/vfs" "s1d3sw1ped/SteamCache2/vfs"
"s1d3sw1ped/SteamCache2/vfs/cache" "s1d3sw1ped/SteamCache2/vfs/cache"
"s1d3sw1ped/SteamCache2/vfs/cachestate" "s1d3sw1ped/SteamCache2/vfs/cachestate"
@@ -81,7 +82,7 @@ func New(address string, memorySize string, memoryMultiplier int, diskSize strin
} }
func (sc *SteamCache) Run() { 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.mu.Lock()
sc.dirty = true sc.dirty = true