Closed tomoyuki28jp closed 2 years ago
When I update my system tray menu on macOS every 5 seconds to show elapsed time, my debug console is flooed with following messages:
method: SetContextMenu method: SetSystemTrayInfo method: SetContextMenu method: SetSystemTrayInfo method: SetContextMenu method: SetSystemTrayInfo method: SetContextMenu method: SetSystemTrayInfo method: SetContextMenu method: SetSystemTrayInfo method: SetContextMenu method: SetSystemTrayInfo method: SetContextMenu method: SetSystemTrayInfo method: SetContextMenu method: SetSystemTrayInfo method: SetContextMenu
Maybe we don't need the debug print code any more? if you want to keep printing them, I think it’s better to surround the print with If DEBUG clause so that the log message won’t be shown in production apps.
print
If DEBUG
#if DEBUG print("method: \(call.method)") #endif
Thanks for your advice
When I update my system tray menu on macOS every 5 seconds to show elapsed time, my debug console is flooed with following messages:
Maybe we don't need the debug print code any more? if you want to keep printing them, I think it’s better to surround the
print
withIf DEBUG
clause so that the log message won’t be shown in production apps.