Ignore:
Timestamp:
Oct 11, 2018 11:50:00 AM (22 months ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
7e9d193
Parents:
e68182a
Message:

OSX Launcher: Log all events for debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/I2PLauncher/Utils/EventManager.swift

    re68182a r4887707  
    88
    99import Foundation
     10
     11// TODO: Log all events?
    1012
    1113class EventManager {
     
    5254  // @param information: pass values to your listeners
    5355  func trigger(eventName:String, information:Any? = nil) {
     56    print("Event: ", eventName, " will trigger ", self.listeners[eventName]?.count ?? 0, " listeners")
    5457    if let actionObjects = self.listeners[eventName] {
    5558      for actionObject in actionObjects {
Note: See TracChangeset for help on using the changeset viewer.