Method: OpenC3::TriggerModel#log
- Defined in:
- lib/openc3/models/trigger_model.rb
#log(kind:, message: nil) ⇒ Object
319 320 321 322 323 324 325 326 327 328 |
# File 'lib/openc3/models/trigger_model.rb', line 319 def log(kind:, message: nil) notification = { 'kind' => kind, 'type' => 'log', 'time' => Time.now.to_i, 'name' => @name, } notification['message'] = unless .nil? AutonomicTopic.write_notification(notification, scope: @scope) end |