diff options
author | Prashanth Swaminathan <prashanthsw@google.com> | 2020-10-05 13:45:40 -0700 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2020-10-06 16:02:49 +0000 |
commit | 85d3679e85c22c955571a6bd31228378193506f6 (patch) | |
tree | 0e935e00ca84ba0d676e3f1e37a7ef72949068cb /pw_log_rpc | |
parent | 32358e57af37b12aac527aecf9201800393944c2 (diff) | |
download | pigweed-85d3679e85c22c955571a6bd31228378193506f6.tar.gz |
pw_log: Limit level values to fit within 3 bits
In order to fit within the log.proto definition of log levels, the
existing level constants are now limited to three-bit-width values.
Change-Id: I9cc40e84761383406a1264ead65e0d298c309660
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/19740
Commit-Queue: Prashanth Swaminathan <prashanthsw@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Diffstat (limited to 'pw_log_rpc')
-rw-r--r-- | pw_log_rpc/pw_log_rpc_proto/log.proto | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/pw_log_rpc/pw_log_rpc_proto/log.proto b/pw_log_rpc/pw_log_rpc_proto/log.proto index a8a7c7f4d..5fa3b8698 100644 --- a/pw_log_rpc/pw_log_rpc_proto/log.proto +++ b/pw_log_rpc/pw_log_rpc_proto/log.proto @@ -19,18 +19,6 @@ package pw.log_rpc; option java_package = "pw.rpc.proto"; option java_outer_classname = "Log"; -// Note: The level is packed into the "line_level" field of LogMessage below. -// Additionally, this breaks from the Pigweed log levels to enable packing the -// log level into just 3 bits. -enum LogLevel { - LOG_LEVEL_UNKNOWN = 0; - LOG_LEVEL_DEBUG = 1; - LOG_LEVEL_INFO = 2; - LOG_LEVEL_WARNING = 3; - LOG_LEVEL_ERROR = 4; - LOG_LEVEL_CRITICAL = 5; -} - // A log with a tokenized message, a string message, or dropped indicator. A // message can be one of three types: // |