storj/storagenode
Ethan 159df8b2e4 Add logging listener for retrieving and setting log levels
See https://storjlabs.atlassian.net/browse/SM-752

These changes allow us to change the log level at runtime through a handler off of the debug endpoint.

Examples of changing the log level on storj-sim

To get the current level for the satellite api process:
curl -XGET 'http://127.0.0.1:10009/logging' --header 'Content-Type: text/plain'

To change the log level:
curl -XPUT 'http://127.0.0.1:10009/logging' --header 'Content-Type: text/plain' --data-raw '{"level":"error"}'

Change-Id: I05d164b290929fa06b6d78c01075ee41f8238044
2020-05-12 16:38:06 -04:00
..
bandwidth all: rename CreateTables to MigrateToLatest 2020-04-30 07:21:17 +00:00
collector all: use monkit v3 2020-02-05 23:53:17 +00:00
console storagenode/console: remove last ping id and address 2020-05-07 13:34:29 +03:00
contact storagenode/contact: call return value from mon.Task() on function finish 2020-04-01 23:26:14 +00:00
gracefulexit storagenode/pieces: implement buffering for writing 2020-05-04 06:01:32 +00:00
heldamount all: fix comments about grpc 2020-05-11 13:05:34 +03:00
inspector storagenode/dashboard: trash added to avaliable space calculations 2020-05-01 15:26:02 +00:00
monitor removes bandwidth limiting 2020-03-04 14:04:00 +00:00
nodestats storagenode/reputation: unknown_audit_reputation_alpha and beta added to db, and reputation endpoint 2020-05-05 15:48:04 +00:00
notifications storagenode: add suspended status to storagenode dashboard/api 2020-04-09 13:36:23 +00:00
orders storagenode/orders: set devDefault sender interval to 30s 2020-05-11 18:55:56 +03:00
pieces storagenode/pieces: implement buffering for writing 2020-05-04 06:01:32 +00:00
piecestore all: fix comments about grpc 2020-05-11 13:05:34 +03:00
preflight all: remove grpc 2020-05-10 06:36:09 +00:00
pricing storagenode/nodestats: add pricing model, storagenode/cache: add paystub history storing 2020-04-14 19:04:00 +03:00
reputation storagenode/reputation: unknown_audit_reputation_alpha and beta added to db, and reputation endpoint 2020-05-05 15:48:04 +00:00
retain storagenode/pieces: implement buffering for writing 2020-05-04 06:01:32 +00:00
satellites storagenode/gracefulexit: fix exit-status command output 2020-01-15 14:58:15 +00:00
storagenodedb storagenode/storagenodedb: fix joined_at migration 2020-05-05 15:01:07 -06:00
storageusage storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
trust storagenode/trust: fix go 1.14 failures 2020-03-24 11:04:30 +00:00
version storanode/version/chore notifications temporary disabled 2020-04-06 16:57:12 +00:00
operator.go remove sugar logging 2020-04-15 12:37:47 +00:00
peer.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00