Skip to content

Commit 0f71acf

Browse files
committed
chore: Remove unused OpaLogevel enum
1 parent 3c048f5 commit 0f71acf

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

rust/operator-binary/src/product_logging.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,6 @@ pub enum Error {
2929

3030
type Result<T, E = Error> = std::result::Result<T, E>;
3131

32-
#[derive(strum::Display)]
33-
#[strum(serialize_all = "lowercase")]
34-
pub enum OpaLogLevel {
35-
Debug,
36-
Info,
37-
Error,
38-
}
39-
40-
impl From<LogLevel> for OpaLogLevel {
41-
fn from(level: LogLevel) -> Self {
42-
match level {
43-
LogLevel::TRACE | LogLevel::DEBUG => Self::Debug,
44-
LogLevel::INFO => Self::Info,
45-
LogLevel::WARN | LogLevel::ERROR | LogLevel::FATAL | LogLevel::NONE => Self::Error,
46-
}
47-
}
48-
}
49-
5032
#[derive(strum::Display)]
5133
#[strum(serialize_all = "UPPERCASE")]
5234
pub enum BundleBuilderLogLevel {

0 commit comments

Comments
 (0)