VOL-5349 : Enhance DMI to be able to set the log level of the Device Manager implementation

Change-Id: I43324289d3a498519430ec326a29c55f9ac7a250
diff --git a/protos/dmi/hw_management_service.proto b/protos/dmi/hw_management_service.proto
index d8b74ca..6caa7a5 100644
--- a/protos/dmi/hw_management_service.proto
+++ b/protos/dmi/hw_management_service.proto
@@ -227,6 +227,36 @@
     Uuid device_uuid = 1;

 }

 

+message SetDmLogLevelRequest {

+    LogLevel level = 1;

+}

+

+message SetDmLogLevelResponse {

+    enum Reason {

+        UNDEFINED_REASON = 0;

+        INTERNAL_ERROR = 1;

+        UNKNOWN_LOG_LEVEL = 2;

+    }

+    Status status = 1;

+    Reason reason = 2;

+    string reason_detail = 3;

+}

+

+message GetDmLogLevelRequest {

+}

+

+message GetDmLogLevelResponse {

+    enum Reason {

+        UNDEFINED_REASON = 0;

+        INTERNAL_ERROR = 1;

+    }

+

+    LogLevel level = 1;

+    Status status = 2;

+    Reason reason = 3;

+    string reason_detail = 4;

+}

+

 message Heartbeat {

     fixed32 heartbeat_signature = 1;

 }

@@ -309,4 +339,10 @@
 

     // Performs the reboot of the device

     rpc RebootDevice(RebootDeviceRequest) returns(RebootDeviceResponse);

+

+    // Sets the log level of the Device Manager itself

+    rpc SetDmLogLevel(SetDmLogLevelRequest) returns(SetDmLogLevelResponse);

+

+    // Gets the log level at which the Device Manager is running

+    rpc GetDmLogLevel(GetDmLogLevelRequest) returns(GetDmLogLevelResponse);

 }