StorageService: setLoggingLevel

This patch uses the system api to set log level.
After this patch the nodetool setloglevel would support modifying a log
level of a log object.

Signed-off-by: Amnon Heiman <amnon@scylladb.com>
Message-Id: <1453367412-29722-1-git-send-email-amnon@scylladb.com>
This commit is contained in:
Amnon Heiman 2016-01-21 11:10:12 +02:00 committed by Pekka Enberg
parent eec251805a
commit 3e1a8961a2

View File

@ -799,9 +799,7 @@ public class StorageService extends NotificationBroadcasterSupport
log(" setLoggingLevel(String classQualifier, String level) throws Exception");
MultivaluedMap<String, String> queryParams = new MultivaluedHashMap<String, String>();
APIClient.set_query_param(queryParams, "level", level);
APIClient.set_query_param(queryParams, "class_qualifier",
classQualifier);
c.post("/storage_service/logging_level", queryParams);
c.post("/system/logger/" + classQualifier, queryParams);
}
/** get the runtime logging levels */