summaryrefslogtreecommitdiff
path: root/src/bin/config.c
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-26 15:36:45 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-26 15:36:45 +0100
commit7648d81d7cab7a537c3c7f6a660e394bb097f765 (patch)
treedebe4c2a55c1ca7f95b6a46adeddfe47ade06b86 /src/bin/config.c
parentf428b4124d46bef42940f31a04945db762fe8d70 (diff)
Smman can now insert logs into ES.
Diffstat (limited to 'src/bin/config.c')
-rw-r--r--src/bin/config.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/config.c b/src/bin/config.c
index 4c29e34..192feb0 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -6,6 +6,7 @@ config_done(void *data,
6{ 6{
7 Smman *smman; 7 Smman *smman;
8 Eina_Iterator *it; 8 Eina_Iterator *it;
9 char *s;
9 10
10 smman = data; 11 smman = data;
11 12
@@ -29,7 +30,13 @@ config_done(void *data,
29 DBG("Host = %s", smman->cfg.host); 30 DBG("Host = %s", smman->cfg.host);
30 eina_iterator_free(it); 31 eina_iterator_free(it);
31 32
32 smman->store = store_new(smman->cfg.server); 33 s = sdupf("%s%s%s",
34 smman->cfg.server,
35 (smman->cfg.server[strlen(smman->cfg.server)-1] == '/') ?
36 "" : "/",
37 "logs/");
38 smman->store = store_new(s);
39 free(s);
33} 40}
34 41
35void 42void