Skip to content

Commit fa41f34

Browse files
authored
Updating deprecated logging references (#2031)
Updating deprecated logging references
1 parent 5e94d6d commit fa41f34

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

codegen/tuigen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ def generate(self) -> None:
345345

346346

347347
def generate(version, pyfluent_path):
348-
# pyfluent.set_log_level("WARNING")
349348
api_tree = {}
350349
if version > "222":
351350
_copy_tui_help_xml_file(version)

doc/source/getting_started/installation.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ to the :func:`launch_fluent() <ansys.fluent.core.launcher.launcher.launch_fluent
8080
8181
session = pyfluent.launch_fluent(precision="double", processor_count=2, show_gui=True, mode="solver")
8282
83-
If you want to print the debug information for development, set the following
84-
environment variable:
83+
If you want to look at PyFluent's debug logging, use the following command:
8584

8685
.. code:: python
8786
88-
pyfluent.set_log_level('DEBUG') # for development, by default only errors are shown
87+
pyfluent.logging.enable()
88+
89+
For more details, see :ref:`ref_logging_user_guide`.
8990

9091

9192
Additional PyFluent packages

doc/source/user_guide/launching_ansys_fluent.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,9 @@ This command enables logging:
9696

9797
.. code:: python
9898
99-
pyfluent.set_log_level("ERROR")
99+
pyfluent.logging.enable()
100100
101-
When enabling logging, you must pass the log level. PyFluent supports any of the
102-
Python logging levels (``"CRITICAL"``, ``"ERROR"``, ``"WARNING"``, ``"INFO"``, and ``"DEBUG"``)
103-
in string or ``enum`` format.
101+
For more details, see :ref:`ref_logging_user_guide`.
104102

105103
Scheduler support
106104
-----------------

0 commit comments

Comments
 (0)