DebounceMac icon indicating copy to clipboard operation
DebounceMac copied to clipboard

last error message is not displayed

Open yokomotod opened this issue 6 years ago • 1 comments

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 ...?

yokomotod avatar Sep 14 '19 08:09 yokomotod

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...

nobu-g avatar Sep 16 '19 07:09 nobu-g