aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rest-api.c3
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;