aboutsummaryrefslogtreecommitdiff
path: root/src/mm-log.c
AgeCommit message (Collapse)Author
2013-02-12core: use g_unix_signal_add() for more reliable Unix signal handlingDan Williams
There were a few problems with MM's existing signal handling, first of which was that calling g_main_loop_quit() from a signal handler only works 50% of the time due to severe restrictions on what you can do from the handler. This caused INT or TERM to sometimes be ignored by MM. Instead, use the glib signal functions which ensure that the handler is run in the right context, where we can do anything we want.
2012-10-30core,log: include logging from the 'Qmi' log domainAleksander Morgado
Sync with libqmi: commit 2835a53732fdae32478dd954a9ee3fa8afd93cab Author: Aleksander Morgado <aleksander@lanedo.com> Date: Tue Oct 30 15:02:24 2012 +0100 libqmi-glib: define library G_LOG_DOMAIN
2012-10-09log: enable QMI traces when showing debug logsAleksander Morgado
Use the new `qmi_utils_set_traces_enabled()' to specify that we want QMI traces when running with DEBUG logs. Sync with libqmi: commit 35dcb4bb6ed2755d968cf97d69faff9ed5f6871f Author: Aleksander Morgado <aleksander@lanedo.com> Date: Tue Oct 9 13:44:16 2012 +0200 libqmi-glib: message traces compiled always Message traces have been very useful when debugging issues in the protocol, and we should avoid requiring a full recompilation in order to get them enabled. Instead, we provide two new API methods, `qmi_utils_(get|set)_traces_enabled()', which allow specifying whether traces should be dumped with g_debug() or not.
2012-03-16log: only include LOC and method name in debug logs if running with --debugAleksander Morgado
If the modem is started with --log-level=DEBUG, they will not be shown.
2012-03-15core: start using our newly defined errorsAleksander Morgado
2011-06-30Add a DBus interface for setting the log level.Nathan Williams
Lifted almost entirely from similar code in NetworkManager. BUG=chromium-os:15197 TEST='dbus-send --print-reply --system --dest=org.freedesktop.ModemManager /org/freedesktop/ModemManager org.freedesktop.ModemManager.SetLogging string:DEBUG' Also try valid log levels 'ERR', 'WARN', 'INFO', and an invalid log level, such as 'ABCDE'. Change-Id: I2bddcd0319f4966dd293b119f68e7cc1697949b7 Reviewed-on: http://gerrit.chromium.org/gerrit/3134 Tested-by: Nathan J. Williams <njw@chromium.org> Reviewed-by: Eric Shienbrood <ers@chromium.org>
2011-02-25logging: use glong for secs and usecsMichael Biebl
2011-02-25log: fix spacing so messages line upDan Williams
2011-01-24logging: make gcc 4.4.3 happy about ignored unused resultsDan Williams
2011-01-24logging: shut up compiler warnings about unused result from write(2)Dan Williams
We actually don't care about the result here. But we do in other places, so we want to keep the warning in general.
2011-01-23core: rework loggingDan Williams
Make it more flexible, add logging to a file, and absolute and relative timestamps.