summaryrefslogtreecommitdiff
path: root/src/mm-base-bearer.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-09-16 17:58:19 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-09-17 12:42:07 +0200
commita9797f44aedac4dcbb6d57def2b8824068462605 (patch)
tree5589de58368257a5204380c610bda100b5303a3a /src/mm-base-bearer.c
parentbe4fa661c12a45b4b6c278c3906e7c126ddae3e8 (diff)
base-bearer: debug log only when ignoring disconnection from CGACT?
There are modems out there (e.g. SIM7600E) where we connect a given CID >1 but once connected, only CID=1 is reported as connected, and not the one we explicitly attempted to connect. In this situation the modem is connected successfully, and we're properly ignoring the disconnection report detected from CGACT? responses, but we're probably better logging this situation only in debug level, not as info, because this check is done periodically every 5s... <debug> [1568649020.333263] (ttyUSB5): --> 'AT+CGDCONT=7,"IP","inet.es"<CR>' <debug> [1568649020.383517] (ttyUSB5): <-- '<CR><LF>OK<CR><LF>' <debug> [1568649020.383617] (ttyUSB5) device open count is 3 (open) <debug> [1568649020.383655] Connection through a plain serial AT port (ttyUSB5) <debug> [1568649020.383683] (ttyUSB5) device open count is 4 (open) <debug> [1568649020.383802] (ttyUSB5) device open count is 3 (close) <debug> [1568649020.383873] (ttyUSB5): --> 'ATD*99***7#<CR>' <debug> [1568649020.405767] (ttyUSB5): <-- '<CR><LF>CONNECT 115200<CR><LF>' <debug> [1568649020.405853] [ttyUSB5] Setting flow control: rts-cts <debug> [1568649020.405878] (ttyUSB5): enabling RTS/CTS flow control <debug> [1568649020.405897] (ttyUSB5): port attributes not fully set <debug> [1568649020.405910] (ttyUSB5): flow control settings updated to rts-cts <debug> [1568649020.405940] (ttyUSB5): port now connected <debug> [1568649020.405983] Connected bearer '/org/freedesktop/ModemManager1/Bearer/0' <debug> [1568649020.406081] PPP is required for connection, will ignore disconnection reports <info> [1568649020.406155] Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connecting -> connected) <info> [1568649020.406361] Simple connect state (8/8): All done <debug> [1568649020.406461] (ttyUSB5) device open count is 2 (close) <debug> [1568649020.448483] (net/ppp0): adding device at sysfs path: /sys/devices/virtual/net/ppp0 <debug> [1568649020.448738] (net/ppp0) could not get vendor/product id <debug> [1568649020.448776] [filter] (net/ppp0) port filtered: virtual device <debug> [1568649050.395662] (ttyUSB6) device open count is 2 (open) <debug> [1568649050.395871] (ttyUSB6): --> 'AT+CGACT?<CR>' <debug> [1568649050.408638] (ttyUSB6): <-- '<CR><LF>+CGACT: 1,1<CR><LF>+CGACT: 2,0<CR><LF>+CGACT: 3,0<CR><LF>+CGACT: 4,0<CR><LF>+CGACT: 5,0<CR><LF>+CGACT: 6,0<CR><LF>+CGACT: 7,0<CR><LF><CR><LF>OK<CR><LF>' <debug> [1568649050.408803] connection status loaded: disconnected ---> <info> [1568649050.408825] ignoring disconnection report for bearer '/org/freedesktop/ModemManager1/Bearer/0' <debug> [1568649050.408848] (ttyUSB6) device open count is 1 (close) <debug> [1568649055.398994] (ttyUSB6) device open count is 2 (open) <debug> [1568649055.399084] (ttyUSB6): --> 'AT+CGACT?<CR>' <debug> [1568649055.411489] (ttyUSB6): <-- '<CR><LF>+CGACT: 1,1<CR><LF>+CGACT: 2,0<CR><LF>+CGACT: 3,0<CR><LF>+CGACT: 4,0<CR><LF>+CGACT: 5,0<CR><LF>+CGACT: 6,0<CR><LF>+CGACT: 7,0<CR><LF><CR><LF>OK<CR><LF>' <debug> [1568649055.411652] connection status loaded: disconnected ---> <info> [1568649055.411674] ignoring disconnection report for bearer '/org/freedesktop/ModemManager1/Bearer/0'
Diffstat (limited to 'src/mm-base-bearer.c')
-rw-r--r--src/mm-base-bearer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-base-bearer.c b/src/mm-base-bearer.c
index b6fbd2de..9808eb4c 100644
--- a/src/mm-base-bearer.c
+++ b/src/mm-base-bearer.c
@@ -1301,7 +1301,7 @@ mm_base_bearer_report_connection_status (MMBaseBearer *self,
MMBearerConnectionStatus status)
{
if ((status == MM_BEARER_CONNECTION_STATUS_DISCONNECTED) && self->priv->ignore_disconnection_reports) {
- mm_info ("ignoring disconnection report for bearer '%s'", self->priv->path);
+ mm_dbg ("ignoring disconnection report for bearer '%s'", self->priv->path);
return;
}