Effect Debugging / logging

I have an effect that is ran with Effect.runSync, I keep getting errors which are due to parsing failing. I know what I want to debug, as in what I want to check is present etc. but non of my logs are being logged.

export const environment = E.runSync(
  loadEnvironment().pipe(
    Logger.withMinimumLogLevel(LogLevel.Debug)
  )
)

This method throws an error due to it not parsing my expected environment schema, which is fine for now. I only want to know how do I get my E.logInfo() messages to show even though the effect fails?
Was this page helpful?