Klemens Nanni
2018-06-28 16:43:51 UTC
Hey,
OpenBSD's port has been running with this for quite some time now; any
chances for this to be merged?
Best regards,
Klemens
---
src/config.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/config.c b/src/config.c
index c39b61e6..6af2ef99 100644
--- a/src/config.c
+++ b/src/config.c
@@ -56,6 +56,7 @@ configEnum maxmemory_policy_enum[] = {
};
configEnum syslog_facility_enum[] = {
+ {"daemon", LOG_DAEMON},
{"user", LOG_USER},
{"local0", LOG_LOCAL0},
{"local1", LOG_LOCAL1},
@@ -298,7 +299,7 @@ void loadServerConfigFromString(char *config) {
server.syslog_facility =
configEnumGetValue(syslog_facility_enum,argv[1]);
if (server.syslog_facility == INT_MIN) {
- err = "Invalid log facility. Must be one of USER or between LOCAL0-LOCAL7";
+ err = "Invalid log facility. Must be one of DAEMON, USER or between LOCAL0-LOCAL7";
goto loaderr;
}
} else if (!strcasecmp(argv[0],"databases") && argc == 2) {
OpenBSD's port has been running with this for quite some time now; any
chances for this to be merged?
Best regards,
Klemens
---
src/config.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/config.c b/src/config.c
index c39b61e6..6af2ef99 100644
--- a/src/config.c
+++ b/src/config.c
@@ -56,6 +56,7 @@ configEnum maxmemory_policy_enum[] = {
};
configEnum syslog_facility_enum[] = {
+ {"daemon", LOG_DAEMON},
{"user", LOG_USER},
{"local0", LOG_LOCAL0},
{"local1", LOG_LOCAL1},
@@ -298,7 +299,7 @@ void loadServerConfigFromString(char *config) {
server.syslog_facility =
configEnumGetValue(syslog_facility_enum,argv[1]);
if (server.syslog_facility == INT_MIN) {
- err = "Invalid log facility. Must be one of USER or between LOCAL0-LOCAL7";
+ err = "Invalid log facility. Must be one of DAEMON, USER or between LOCAL0-LOCAL7";
goto loaderr;
}
} else if (!strcasecmp(argv[0],"databases") && argc == 2) {
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.