eos icon indicating copy to clipboard operation
eos copied to clipboard

DAWN-456 ⁃ Add ability to reload logging configuration on the fly

Open blockone-syncclient opened this issue 8 years ago • 3 comments

eosiod needs to be able to change logging levels without restarting. Add the ability to reload the logging configuration on the fly.

ATC

Prerequisites

  • A local test net with a single eosiod process on the test machine running the newest code

Side Effects

  • Ordinarily expected log messages will not be present in the log

Procedure

  1. With eosiod running, verify its stderr.txt is present and updating.
  2. Edit logging.json for the running eosiod:
  • In the loggers section, in the value for "level", change "info" to "warn"
  1. Send SIGHUP to eosiod:
  • pkill -HUP eosiod
  1. Verify "Received HUP. Reloading logging configuration." appears in stderr.txt and Info and below log messages no longer appear. In particular "Not producing block because it isn't my turn" will stop appearing.
  2. Edit logging.json for the running eosiod:
  • In the loggers section, change "warn" to "info"
  1. Send SIGHUP to eosiod as before.
  2. Verify "Not producing block because it isn't my turn" appears in stderr.txt again. No "Received HUP" message is expected, as it is logged with Info priority.
  3. Edit logging.json for the running eosiod:
  • In the loggers section, change "debug" to "bogus"
  1. Send SIGHUP to eosiod as before.
  2. Verify configuration file is rejected with 7 bad_cast_expection: Bad Cast and Expected 'all|debug|info|warn|error|off', but got 'bogus' and logging continues as before.

blockone-syncclient avatar Jan 09 '18 22:01 blockone-syncclient

./eosc get status needs to provide this level of detail - what test/live net am I connected to and what are my parms (servers and ports, etc.)

comtechnet avatar Jan 10 '18 19:01 comtechnet

@comtechnet You should post your comment as a separate ticket. It sounds like a good idea that should be tracked.

jgiszczak avatar Jan 11 '18 19:01 jgiszczak

closed by #1058

wanderingbort avatar Jan 19 '18 21:01 wanderingbort