diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-02-15 11:06:02 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-02-15 11:06:02 +0100 |
commit | d11b338cea727ef1463c06b94b89653d1a168727 (patch) | |
tree | 5ef37efc203cd60b4557c481cb54d5911a351a0a | |
parent | 3a6db27dec6fee245708074c301b42e1cbedd716 (diff) |
rest-api: fix verbosity of upload message
Change-Id: Ie9f2e513bf44b46eabf644792cc7ad0d04f10755
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/rest-api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rest-api.c b/src/rest-api.c index 9f16a8fd..9a5c1844 100644 --- a/src/rest-api.c +++ b/src/rest-api.c @@ -283,7 +283,8 @@ STATIC int doPostIterate (void *cls, enum MHD_ValueKind kind, const char *key, AFB_request *request = (AFB_request*)postHandle->privatebuf; AFB_PostRequest postRequest; - fprintf (stderr, "postHandle key=%s filename=%s len=%d mime=%s\n", key, filename, size, mimetype); + if (verbose) + fprintf (stderr, "postHandle key=%s filename=%s len=%d mime=%s\n", key, filename, size, mimetype); // Create and Item value for Plugin API item.kind = kind; |