Skip to content

Commit f756639

Browse files
author
Devdutt Shenoi
committed
ensure lowercase
1 parent 4b6209b commit f756639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/event/format/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub enum LogSource {
8282

8383
impl From<&str> for LogSource {
8484
fn from(s: &str) -> Self {
85-
match s {
85+
match s.to_lowercase().as_str() {
8686
"kinesis" => LogSource::Kinesis,
8787
"otel-logs" => LogSource::OtelLogs,
8888
"otel-metrics" => LogSource::OtelMetrics,

0 commit comments

Comments
 (0)