Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-24 Thread Matthew Flatt
At Thu, 24 Jan 2019 14:16:55 -0800 (PST), Brian Adkins wrote: > I'm not familiar with the implementation of Racket's logging, but it seems > reasonable that once (log-message) returns the log message would be > immediately available for sync'ing i.e. it's not arriving asynchronously. That's

Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-24 Thread Brian Adkins
On Thursday, January 24, 2019 at 12:44:51 AM UTC-5, gneuner2 wrote: > > > > On 1/23/2019 12:02 PM, Brian Adkins wrote: > > It looks like you're still using an arbitrary wait time to assume the > > logging event queue is empty. I like it much better than my sleep > > idea, but it seems like

Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-23 Thread George Neuner
On 1/23/2019 12:02 PM, Brian Adkins wrote: It looks like you're still using an arbitrary wait time to assume the logging event queue is empty. I like it much better than my sleep idea, but it seems like there is still the problem of choosing between 1) using a timeout value to short and

Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-23 Thread Brian Adkins
Thanks. It looks like you're still using an arbitrary wait time to assume the logging event queue is empty. I like it much better than my sleep idea, but it seems like there is still the problem of choosing between 1) using a timeout value to short and missing a log message, or 2) using a

Re: [racket-users] Re: Execution ends before log message is displayed

2019-01-20 Thread George Neuner
On 1/20/2019 6:34 PM, Brian Adkins wrote: Thanks. I do use dynamic-wind in various ways now, but I'm not sure how it would help me in this particular scenario. My log receiver thread is simply in a loop sync'ing on the logger, so I can't wait for my thread. I don't know how to determine

[racket-users] Re: Execution ends before log message is displayed

2019-01-20 Thread Brian Adkins
Thanks. I do use dynamic-wind in various ways now, but I'm not sure how it would help me in this particular scenario. My log receiver thread is simply in a loop sync'ing on the logger, so I can't wait for my thread. I don't know how to determine when all the log messages have been received.

[racket-users] Re: Execution ends before log message is displayed

2019-01-18 Thread George Neuner
On Thu, 17 Jan 2019 18:08:00 -0800 (PST), Brian Adkins wrote: >Aha! Thanks for the quick reply. I'll have to rethink how I'm handling >logging. One thing you might try is to use dynamic-wind in your main thread, so you can cleanly end loggin and shut down your logging thread even if the main