wrong log format
This commit is contained in:
parent
7f0b9909b3
commit
5650f29da1
2 changed files with 4 additions and 3 deletions
|
|
@ -141,7 +141,7 @@ backend_notify(clicon_handle h,
|
||||||
if (strlen(su->su_filter)==0 || fnmatch(su->su_filter, event, 0) == 0){
|
if (strlen(su->su_filter)==0 || fnmatch(su->su_filter, event, 0) == 0){
|
||||||
if (send_msg_notify(ce->ce_s, level, event) < 0){
|
if (send_msg_notify(ce->ce_s, level, event) < 0){
|
||||||
if (errno == ECONNRESET){
|
if (errno == ECONNRESET){
|
||||||
clicon_log(LOG_WARNING, "client %s reset", ce->ce_nr);
|
clicon_log(LOG_WARNING, "client %d reset", ce->ce_nr);
|
||||||
#if 0
|
#if 0
|
||||||
/* We should remove here but removal is not possible
|
/* We should remove here but removal is not possible
|
||||||
from a client since backend_client is not linked.
|
from a client since backend_client is not linked.
|
||||||
|
|
@ -219,7 +219,7 @@ backend_notify_xml(clicon_handle h,
|
||||||
}
|
}
|
||||||
if (send_msg_notify(ce->ce_s, level, cbuf_get(cb)) < 0){
|
if (send_msg_notify(ce->ce_s, level, cbuf_get(cb)) < 0){
|
||||||
if (errno == ECONNRESET){
|
if (errno == ECONNRESET){
|
||||||
clicon_log(LOG_WARNING, "client %s reset", ce->ce_nr);
|
clicon_log(LOG_WARNING, "client %d reset", ce->ce_nr);
|
||||||
#if 0
|
#if 0
|
||||||
/* We should remove here but removal is not possible
|
/* We should remove here but removal is not possible
|
||||||
from a client since backend_client is not linked.
|
from a client since backend_client is not linked.
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,8 @@ exit_candidate_db(clicon_handle h)
|
||||||
* @param[in] filter Filter. For xml notification ie xpath: .[name=kalle]
|
* @param[in] filter Filter. For xml notification ie xpath: .[name=kalle]
|
||||||
* @param[in] status 0 for stop, 1 to start
|
* @param[in] status 0 for stop, 1 to start
|
||||||
* @param[in] fn Callback function called when notification occurs
|
* @param[in] fn Callback function called when notification occurs
|
||||||
* @param[in] arg Argumnent to function
|
* @param[in] arg Argument to function note
|
||||||
|
* Note this calls cligen_regfd which may callback on cli command interpretator
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
cli_notification_register(clicon_handle h,
|
cli_notification_register(clicon_handle h,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue