Just to understand about IO.inspect inside a background process

I have a regular controller that handles requests and inside that controller I have a simple process that runs in background by using Task.Supervisor.start_child. Inside the anonymous function of the process I have a simple IO.inspect "something", but I am not able to see this log on my terminal. This task completes because it’s creating an external file to me, but what happens with the log ? Can’t I see the log on my terminal for background processes ? My controller is finishing before showing the log?

I think I figured out the “problem”… I am using IO.write inside a stream to write to a file… outside the stream I have a simple IO.inspect that stopped working because of the previous IO.write. It’s weird.