Ignore mosaicml logger for exception if excephook is active
Before we remove the logger all together (re: https://github.com/mosaicml/llm-foundry/pull/1292) we want to first test catching exceptions with a flag. This prevents us from logging an exception twice. I will run tests that turn the logger off in favor of overriding the excepthook to make sure the intended before still holds for finetuning.
Ran a test on dbx-staging to confirm that the flag works. We will have to update the foundry image used for finetuning to incorporate this change.
Ignore mosaicml logger for exception if excephook is active
Before we remove the logger all together (re: https://github.com/mosaicml/llm-foundry/pull/1292) we want to first test catching exceptions with a flag. This prevents us from logging an exception twice. I will run tests that turn the logger off in favor of overriding the excepthook to make sure the intended before still holds for finetuning.
Ran a test on dbx-staging to confirm that the flag works. We will have to update the foundry image used for finetuning to incorporate this change.![image](https://github.com/mosaicml/llm-foundry/assets/29712344/a2582bef-effc-4139-a703-1d25dfedf729)