~thomas-voss/location-service/make-trials-in-gps-test-configurable-and-output-test-summary

« back to all changes in this revision

Viewing changes to src/location_service/com/ubuntu/location/connectivity/ofono_nm_connectivity_manager.cpp

  • Committer: CI bot
  • Author(s): thomas-voss
  • Date: 2014-08-18 08:11:34 UTC
  • mfrom: (92.3.3 fix-1356814)
  • Revision ID: ps-jenkins@lists.canonical.com-20140818081134-pwbsowtoz9o0bmdk
Clean up CachedRadioCell and CachedWirelessNetwork.
Switch to logging to syslog. Fixes: 1356814
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
    }
139
139
    catch (const std::exception& e)
140
140
    {
141
 
        LOG(ERROR) << "Error while setting up access to radio and network stack: " << e.what();
 
141
        SYSLOG(ERROR) << "Error while setting up access to radio and network stack: " << e.what();
142
142
    }
143
143
}
144
144
 
168
168
        }
169
169
        catch(const std::runtime_error& e)
170
170
        {
171
 
            LOG(WARNING) << "Exception while creating connected radio cell: " << e.what();
 
171
            VLOG(1) << "Exception while creating connected radio cell: " << e.what();
172
172
        }
173
173
    });
174
174
 
180
180
        }
181
181
        catch(const std::exception& e)
182
182
        {
183
 
            LOG(WARNING) << "Exception while adding modem: " << e.what();
 
183
            VLOG(1) << "Exception while adding modem: " << e.what();
184
184
        }
185
185
    });
186
186
 
192
192
        }
193
193
        catch(const std::exception& e)
194
194
        {
195
 
            LOG(WARNING) << "Exception while removing modem: " << e.what();
 
195
            VLOG(1) << "Exception while removing modem: " << e.what();
196
196
        }
197
197
    });
198
198
}
262
262
    auto itm = cached.modems.find(path);
263
263
    if (itm == cached.modems.end())
264
264
    {
265
 
        LOG(WARNING) << "Could not find a modem for path " << path.as_string();
 
265
        VLOG(1) << "Could not find a modem for path " << path.as_string();
266
266
        return;
267
267
    }
268
268
 
319
319
                }
320
320
                catch (const std::exception& e)
321
321
                {
322
 
                    LOG(ERROR) << "Error while creating ap/wifi: " << e.what();
 
322
                    VLOG(1) << "Error while creating ap/wifi: " << e.what();
323
323
                }
324
324
            });
325
325
 
336
336
                }
337
337
                catch (const std::exception& e)
338
338
                {
339
 
                    LOG(ERROR) << "Error while creating ap/wifi: " << e.what();
 
339
                    VLOG(1) << "Error while creating ap/wifi: " << e.what();
340
340
                }
341
341
            });
342
342
 
348
348
                }
349
349
                catch (const std::exception& e)
350
350
                {
351
 
                    LOG(ERROR) << "Error while removing ap/wifi: " << e.what();
 
351
                    VLOG(1) << "Error while removing ap/wifi: " << e.what();
352
352
                }
353
353
            });
354
354
        }