log errors -> disable logging

pull/207/head^2
Kye 1 year ago
parent cb31ab314d
commit 8484041847

@ -1,8 +1,3 @@
import sys
log_file = open("errors.txt", "w")
sys.stderr = log_file
# LLMs
from swarms.models.anthropic import Anthropic # noqa: E402
from swarms.models.petals import Petals # noqa: E402

@ -1,9 +1,12 @@
import logging
import os
import warnings
import sys
def disable_logging():
log_file = open("errors.txt", "w")
sys.stderr = log_file
warnings.filterwarnings("ignore", category=UserWarning)
# disable tensorflow warnings

Loading…
Cancel
Save