/* Read the event name */
byte[] eventNameBytes = new byte[EVENT_NAME_LENGTH];
buf.get(eventNameBytes);
- eventName = new String(eventNameBytes).trim();
+ eventName = new String(eventNameBytes, SESSIOND_PROTOCOL_CHARSET).trim();
/* Read the filter string */
filterString = readNextString(buf);
boolean success = agent.eventEnabled(rule);
return (success ? LttngAgentResponse.SUCESS_RESPONSE : LttngAgentResponse.FAILURE_RESPONSE);
}
+
+ @Override
+ public String toString() {
+ return "SessiondEnableEventCommand["
+ + "eventName=" + eventName
+ + ", logLevel=" + logLevelFilter.toString()
+ + ", filterString=" + filterString
+ +"]";
+ }
}