log: only include LOC and method name in debug logs if running with --debug

If the modem is started with --log-level=DEBUG, they will not be shown.
This commit is contained in:
Aleksander Morgado
2012-03-08 23:32:30 +01:00
parent cdd339f802
commit 181f9c85f0
3 changed files with 7 additions and 3 deletions

View File

@@ -115,6 +115,7 @@ main (int argc, char *argv[])
mm_context_get_log_file (),
mm_context_get_timestamps (),
mm_context_get_relative_timestamps (),
mm_context_get_debug (),
&err)) {
g_warning ("Failed to set up logging: %s", err->message);
g_error_free (err);