20180622140531_sequencer_log_level_setting.rb 1.3 KB

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