afb-config: update the output of the config
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 29 Aug 2017 09:17:02 +0000 (11:17 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 29 Aug 2017 09:17:02 +0000 (11:17 +0200)
Change-Id: I1dbc3c0b0c84cb34da1c8851044a6e72e4dfbd34
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-config.c
src/afb-config.h

index 3a50e41..25f44cd 100644 (file)
@@ -682,20 +682,28 @@ void afb_config_dump(struct afb_config *config)
        L(ws_servers)
        L(so_bindings)
        L(ldpaths)
+       L(weak_ldpaths)
        L(calls)
 
        V(exec)
 
        D(httpdPort)
-       B(background)
        D(cacheTimeout)
        D(apiTimeout)
        D(cntxTimeout)
        D(nbSessionMax)
+
        E(mode,mode_desc)
        E(tracereq,tracereq_desc)
        E(traceditf,traceditf_desc)
+       E(tracesvc,tracesvc_desc)
+       E(traceevt,traceevt_desc)
+
+       B(no_ldpaths)
        B(noHttpd)
+       B(background)
+       B(monitoring)
+       B(random_token)
        P("---END-OF-CONFIG---\n");
 
 #undef V
index 56bfa9a..792a6b8 100644 (file)
@@ -54,6 +54,8 @@ struct afb_config {
        int apiTimeout;
        int cntxTimeout;        // Client Session Context timeout
        int nbSessionMax;       // max count of sessions
+
+       /* enums */
        int mode;               // mode of listening
        int tracereq;
        int traceditf;