~phablet-team/urfkill/monitor-script

« back to all changes in this revision

Viewing changes to src/urf-main.c

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2014-07-09 14:53:13 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140709145313-zuv5yok9yvu1zd1w
Tags: 0.6.0~20140708.110711.a0581f3-0ubuntu1
* New release snapshot:
  + always write out persistence state changes to disk.
  + arbitrator: save wanted state to persistence, and not the current device
    state on shutdown.
  + Fixes to signals from devices on state changes.
  + Saved desired state when adaptor is not present
  + Allow logging to stdout for debug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
        if (debug)
177
177
                log_level |= G_LOG_LEVEL_DEBUG;
178
178
 
179
 
        g_log_set_handler (G_LOG_DOMAIN,
180
 
                           log_level | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION,
181
 
                           (GLogFunc) urf_log_handler,
182
 
                           NULL);
 
179
        if (getenv("URFKILL_NO_SYSLOG") == 0) {
 
180
                g_log_set_handler (G_LOG_DOMAIN,
 
181
                                   log_level | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION,
 
182
                                   (GLogFunc) urf_log_handler,
 
183
                                   NULL);
 
184
        }
183
185
 
184
186
        if (conf_file == NULL)
185
187
                conf_file = URFKILL_CONFIG_FILE;