Skip to content

Commit

Permalink
Remove unused log config settings (pytorch#98795)
Browse files Browse the repository at this point in the history
Summary: Removing deprecated log settings

Test Plan: Removing code, no tests needed

Differential Revision: D44853619

Pull Request resolved: pytorch#98795
Approved by: https://github.com/anijain2305
  • Loading branch information
mlazos authored and pytorchmergebot committed Apr 11, 2023
1 parent ce4df4c commit 34961d4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions torch/_dynamo/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
import os
import sys
import tempfile
Expand All @@ -18,16 +17,6 @@
# the name of a file to write the logs to
log_file_name = None

# Note (mlazos): This is deprecated and will be removed very soon
# to configure logging for dynamo, aot, and inductor
# use the following API in the torch._logging module
# torch._logging.set_logs(dynamo=<level>, aot=<level>, inductor<level>)
# or use the environment variable TORCH_LOGS="dynamo,aot,inductor" (use a prefix + to indicate higher verbosity)
# see this design doc for more detailed info
# Design doc: https://docs.google.com/document/d/1ZRfTWKa8eaPq1AxaiHrq4ASTPouzzlPiuquSBEJYwS8/edit#
log_level = logging.ERROR
output_code = None

# Verbose will print full stack traces on warnings and errors
verbose = os.environ.get("TORCHDYNAMO_VERBOSE", "0") == "1"

Expand Down

0 comments on commit 34961d4

Please sign in to comment.