shell-operator icon indicating copy to clipboard operation
shell-operator copied to clipboard

"Live" debug options

Open diafour opened this issue 6 years ago • 1 comments

Debug endpoint introduced by #8 can be used to set debug options in runtime:

  • endpoints:
    • /debug/settings[.json|.yaml] — list settings (DebugKeepTmpFiles, LogLevel, etc.)
    • /debug/settings/ GET | PUT (set value) | DELETE(reset to default)
  • add cli command debug to addon-operator:
    • shell-operator debug settings list [-o yaml|json]
    • shell-operator debug settings get <name>|<group>
    • shell-operator debug settings set <name> <value>
    • shell-operator debug settings reset <name>
  • possible options:
    • debug.keepTmpFiles
    • log.level
    • debug.log.helmOutput — log output from helm commands
    • debug.log.kubernetesEvents — log information about incoming kubernetes events
    • debug.log.kubernetesEvents.dumpObjects — also dump incoming objects
    • ...

diafour avatar Jan 22 '20 05:01 diafour

More debugging tools:

  • Debug log buffer. A user can get debug log even if the log level is not a debug.
  • Get 'live' log focused on module/hook/binding.
  • Change log level for module/hook/binding.
  • ~Get snapshots from Monitor for hook or binding.~ (#345)
  • Toggle logging of Kubernetes events and incoming objects for hook or binding.
  • Show history of hook executions for the module.
  • Task execution history in queue listing. Show N finished tasks for shell-operator debug queue.
  • ~Show queues for the module. Main queue + all queues in module hooks.~ (#105, #345)

diafour avatar Sep 01 '21 11:09 diafour