DebounceMac
DebounceMac copied to clipboard
last error message is not displayed
When I didn't configure Accessibility / permissions, the command exists soon only with this message.
2019-09-14 16:43:16 INFO: Initializing an event tap.
I found if I put Thread.sleep(forTimeInterval: 1) before exit(1), then I could see
2019-09-14 16:43:16 ERROR: Unable to create event tap. Must run as root or add privlidges for assistive devices to this app.
2019-09-14 16:43:16 INFO: terminate
not sure but seems file buffering is not flushed ...?
I also think it is a problem of file buffering.
The logging of this program depends on SwiftyBeaver and I tried to flush the log destination buffer. But, flush function is commented out and unavailable.
The flush function might be able to be implemented but I couldn't do it, sorry...