20180622140531_sequencer_log_level_setting.rb 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. class SequencerLogLevelSetting < ActiveRecord::Migration[5.1]
  2. def change
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Setting.create_if_not_exists(
  6. title: 'Sequencer log level',
  7. name: 'sequencer_log_level',
  8. area: 'Core',
  9. description: 'Defines the log levels for various logging actions of the Sequencer.',
  10. options: {},
  11. state: {
  12. sequence: {
  13. start_finish: :debug,
  14. unit: :debug,
  15. result: :debug,
  16. },
  17. state: {
  18. optional: :debug,
  19. set: :debug,
  20. get: :debug,
  21. attribute_initialization: {
  22. start_finish: :debug,
  23. attributes: :debug,
  24. },
  25. parameter_initialization: {
  26. parameters: :debug,
  27. start_finish: :debug,
  28. unused: :debug,
  29. },
  30. expectations_initialization: :debug,
  31. cleanup: {
  32. start_finish: :debug,
  33. remove: :debug,
  34. }
  35. }
  36. },
  37. frontend: false,
  38. )
  39. end
  40. end