logger icon indicating copy to clipboard operation
logger copied to clipboard

File output fails within Workmanager task handler

Open IanWorthington opened this issue 4 years ago • 2 comments
trafficstars

I have a callback invoked by Workmanager. Although Console output works fine from here, I have to reinitialise the file for the File Output at the start of the callback, which I guess makes sense.

However once I start processing within the Workmanager.executeTask() task handler, although I still get the console output fine, I get nothing written to the File output. I've even tried reinitialising to a third file here, without any success. There's no errors on the console.

Any ideas how I might fix this?

Notes: Maybe caused by IOSink close/await done missing or faulty when called in task handler?

IanWorthington avatar Mar 29 '21 22:03 IanWorthington

@IanWorthington , Did you find the fix, im also facing same problem.

knvpk avatar May 19 '21 04:05 knvpk

@IanWorthington , Did you find the fix, im also facing same problem.

I'm afraid not. I've had to stop using logger for the moment, but I hope to come back to it at some stage.

IanWorthington avatar May 19 '21 10:05 IanWorthington