Skip to content

Commit 033339a

Browse files
committed
Remove requirement that ip or host be set, since the default is 127.0.0.1
1 parent a818832 commit 033339a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

priv/schema/rabbit.schema

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,26 +1068,6 @@ end}.
10681068
{datatype, {enum, [true, false]}}
10691069
]}.
10701070

1071-
{translation, "rabbit.log.syslog.enabled",
1072-
fun(Conf) ->
1073-
case cuttlefish:conf_get("log.syslog", Conf) of
1074-
true ->
1075-
case cuttlefish:conf_get("log.syslog.ip", Conf, undefined) of
1076-
undefined ->
1077-
case cuttlefish:conf_get("log.syslog.host", Conf, undefined) of
1078-
undefined ->
1079-
cuttlefish:invalid("Either log.syslog.ip or log.syslog.host must be set");
1080-
_Host ->
1081-
true
1082-
end;
1083-
_IpAddr ->
1084-
true
1085-
end;
1086-
_ ->
1087-
[]
1088-
end
1089-
end}.
1090-
10911071
{mapping, "log.syslog.level", "rabbit.log.syslog.level", [
10921072
{datatype, {enum, [debug, info, notice, warning, error, critical, alert, emergency, none]}}
10931073
]}.

0 commit comments

Comments
 (0)