Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Fix dependency naming issues

Co-authored-by: Jesse Szwedko <jesse@szwedko.me>
Signed-off-by: Luc Perkins <luc@timber.io>
  • Loading branch information
2 people authored and Luc Perkins committed Dec 21, 2020
1 parent 0dcd170 commit 460f7ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/reference/remap/to_syslog_level.cue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ remap: functions: to_syslog_level: {
input: {
severity: "5"
}
source: ".log_level = to_level(.severity)"
source: ".log_level = to_syslog_level(.severity)"
output: {
level: "notice"
}
Expand All @@ -31,7 +31,7 @@ remap: functions: to_syslog_level: {
input: {
severity: "1337"
}
source: ".log_level = to_severity(.severity)"
source: ".log_level = to_syslog_level(.severity)"
output: {
error: remap.errors.ParseError
}
Expand Down
1 change: 0 additions & 1 deletion lib/remap-functions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ strip_whitespace = []
to_bool = ["shared/conversion"]
to_float = ["shared/conversion"]
to_int = ["shared/conversion"]
to_level = []
to_string = []
to_syslog_level = []
to_timestamp = ["chrono"]
Expand Down
2 changes: 1 addition & 1 deletion lib/remap-functions/src/to_syslog_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub struct ToSyslogLevel;

impl Function for ToSyslogLevel {
fn identifier(&self) -> &'static str {
"to_level"
"to_syslog_level"
}

fn parameters(&self) -> &'static [Parameter] {
Expand Down

0 comments on commit 460f7ad

Please sign in to comment.