Simon Fels
75eca28bbd
errtracker: simplify code a little bit
2017-05-18 14:52:38 +02:00
Simon Fels
eeda11d991
errtracker: move machine-id reading into own function and rework error reporting
2017-05-18 08:59:02 +02:00
Simon Fels
6ddff41021
errtracker: try multiple paths to read machine-id
...
The machine-id file is at different locations depending on how the system
is setup. On Fedora for example /var/lib/dbus/machine-id doesn't exist
but we have /etc/machine-id. See
https://www.freedesktop.org/software/systemd/man/machine-id.html for a
few more details.
2017-05-18 08:52:27 +02:00
Michael Vogt
ae8f59a947
Merge pull request #3148 from mvo5/errtracker-honor-tests
...
errtracker: never send errtracker reports when running under SNAPPY_TESTING
2017-04-07 11:38:22 +02:00
Michael Vogt
435e6d82f8
one more typo (thanks to zyga)
2017-04-06 14:53:55 +02:00
Michael Vogt
5008e7fadb
fix typo
2017-04-06 13:39:15 +02:00
Michael Vogt
4ecb09bc63
never send errtracker reports when running under SNAPPY_TESTING
2017-04-06 12:21:16 +02:00
Simon Fels
236807ee18
osutil,errtracker: simply code for LookPathDefault a bit further
2017-04-05 11:36:00 +02:00
Simon Fels
dd9987c1f1
many: rename FindInPath to LookupPath
2017-04-04 07:39:04 +02:00
Simon Fels
97baa4b137
errtracker/osutil: drop extra init function to initialize variables
2017-04-03 10:17:55 +02:00
Simon Fels
33209629c4
errtracker,osutil: replace paths to /bin/{true,false} with find results
2017-03-31 10:28:32 +02:00
Zygmunt Krynicki
40c65c093c
errtracker: fix testing outside of ubuntu
...
Unfortunately the distribution "ubuntu" is special cased so that it
shows up as "Ubuntu". Tests are not taking this into account and were
always expecting the upper-cased distribution name. This patch fixes
this.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl >
2017-03-06 23:39:01 +01:00
Michael Vogt
6ae4a1f9ef
Merge remote-tracking branch 'upstream/release/2.22' into 2.22.8-fixes
2017-03-01 12:23:05 +01:00
Samuele Pedroni
28555f75e0
more info in errtracker reports
2017-02-24 18:22:53 +01:00
Michael Vogt
81bc58ade9
many: merge 2.22.6 back into master ( #2922 )
2017-02-23 10:03:59 -03:00
Michael Vogt
d6ec0064ce
errtracker: include the build-id of host and core snapd ( #2912 )
2017-02-22 16:31:40 -03:00
Michael Vogt
7258c87c3f
errtracker: include the number of ubuntu-core -> core retries ( #2915 )
...
This branch adds the amount of retries for the ubuntu-core -> core migration to the error report.
2017-02-22 16:09:26 -03:00
Michael Vogt
a0712e6168
errtracker: include kernel version in error reports ( #2905 )
2017-02-22 12:07:11 -03:00
Michael Vogt
a0d2667a93
review feedback
2017-02-22 12:14:17 +01:00
Michael Vogt
6d782647bb
include snapd version in err reports
2017-02-22 08:43:25 +01:00
Michael Vogt
229372d60a
mock machine-id path to fix FTBFS in sbuild
2017-02-21 09:35:31 +01:00
Michael Vogt
3b4d3973c1
fix go check issues
2017-02-21 00:16:29 +01:00
Michael Vogt
125c715f7f
set errtracker.CrashDbURLBase in cmd/snapd/main.go
2017-02-20 23:09:51 +01:00
Michael Vogt
d000e5346b
really use gopkg.in/mgo.v2/bson
2017-02-20 23:06:44 +01:00
Michael Vogt
6a92f5b63f
update bson location
2017-02-20 22:48:14 +01:00