mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-24 00:59:02 -05:00
when a slave experiances an error on commands that come from master, print to the log
since slave isn't replying to it's master, these errors go unnoticed. since we don't expect the master to send garbadge to the slave, this should be safe. (as long as we don't log OOM errors there)
This commit is contained in:
parent
95883313b5
commit
161a3a174b
@ -371,6 +371,8 @@ void addReplyErrorLength(client *c, const char *s, size_t len) {
|
|||||||
addReplyString(c,"-ERR ",5);
|
addReplyString(c,"-ERR ",5);
|
||||||
addReplyString(c,s,len);
|
addReplyString(c,s,len);
|
||||||
addReplyString(c,"\r\n",2);
|
addReplyString(c,"\r\n",2);
|
||||||
|
if (c->flags & CLIENT_MASTER)
|
||||||
|
serverLog(LL_WARNING,"Error sent to master: %s", s);
|
||||||
}
|
}
|
||||||
|
|
||||||
void addReplyError(client *c, const char *err) {
|
void addReplyError(client *c, const char *err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user