1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00

sessions: add GobTranscoder and document the DefaultTranscoder package-level variable

Former-commit-id: 631d52bb6d0eb0dbe2e7416517ec019c5902ca71
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-05-07 01:14:41 +03:00
parent a111c67241
commit b4365cee8d
4 changed files with 116 additions and 10 deletions

View File

@@ -288,7 +288,7 @@ func (db *Database) Get(sid string, key string) (value interface{}) {
return sessions.DefaultTranscoder.Unmarshal(valueBytes, &value)
})
if err != nil {
golog.Debugf("session '%s' key '%s' not found", sid, key)
golog.Debugf("session '%s' key '%s' cannot be retrieved: %v", sid, key, err)
}
return