git://git.iain.cx/iain
/
pstop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68d16c9
)
log success/failure to change ps.setup_instruments
author
Simon J Mudd
<sjmudd@pobox.com>
Mon, 12 Jan 2015 16:55:47 +0000
(17:55 +0100)
committer
Simon J Mudd
<sjmudd@pobox.com>
Mon, 12 Jan 2015 16:55:47 +0000
(17:55 +0100)
p_s/setup_instruments/setup_instruments.go
patch
|
blob
|
history
diff --git
a/p_s/setup_instruments/setup_instruments.go
b/p_s/setup_instruments/setup_instruments.go
index
c92b6df
..
595e75a
100644
(file)
--- a/
p_s/setup_instruments/setup_instruments.go
+++ b/
p_s/setup_instruments/setup_instruments.go
@@
-33,8
+33,6
@@
func (si *SetupInstruments) EnableMutexMonitoring(dbh *sql.DB) {
rows, err := dbh.Query(sql)
if err != nil {
log.Fatal(err)
-
-
}
defer rows.Close()
@@
-69,11
+67,14
@@
func (si *SetupInstruments) EnableMutexMonitoring(dbh *sql.DB) {
log.Fatal(err)
}
break
-
}
count++
}
- lib.Logger.Println(count, "rows changed in p_s.setup_instruments")
+ if si.update_succeeded {
+ lib.Logger.Println(count, "rows changed in p_s.setup_instruments")
+ } else {
+ lib.Logger.Println( "Insufficient privileges to UPDATE setup_instruments: " . err.String() )
+ }
}
// restore any changed rows back to their original state