projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added PP2 session create/destroy logging
[pazpar2-moved-to-github.git]
/
src
/
session.c
diff --git
a/src/session.c
b/src/session.c
index
4653238
..
ce5c635
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-359,7
+359,7
@@
static int prepare_map(struct session *se, struct session_database *sdb)
}
}
sdb->map = normalize_cache_get(se->normalize_cache,
}
}
sdb->map = normalize_cache_get(se->normalize_cache,
- se->service, s);
+ se->service->server->config, s);
if (!sdb->map)
return -1;
}
if (!sdb->map)
return -1;
}
@@
-669,6
+669,7
@@
void destroy_session(struct session *s)
{
struct session_database *sdb;
{
struct session_database *sdb;
+ yaz_log(YLOG_DEBUG, "%p Pazpar2 session destroy", s);
session_remove_clients(s);
for (sdb = s->databases; sdb; sdb = sdb->next)
session_remove_clients(s);
for (sdb = s->databases; sdb; sdb = sdb->next)
@@
-688,7
+689,7
@@
struct session *new_session(NMEM nmem, struct conf_service *service,
int i;
struct session *session = nmem_malloc(nmem, sizeof(*session));
int i;
struct session *session = nmem_malloc(nmem, sizeof(*session));
- yaz_log(YLOG_DEBUG, "New Pazpar2 session");
+ yaz_log(YLOG_DEBUG, "%p New Pazpar2 session", session);
session->service = service;
session->relevance = 0;
session->service = service;
session->relevance = 0;