Trying to solve with the logging level set to "Verbose" using the Solver UI "Log" menu, causes an error when trying to solve
Expected behavior:
If a user turns on "Verbose" logging level the Python logging module will still log "info" level messages, but the maya.cmds.mmSolver command will be given the "verbose=True" argument flag. Verbose printing in the mmSolver command should print out a lot of information while the solver is being run - on Linux this is visible in the Terminal, on Windows it's intended to be displayed in the Output Window (but current it is not printed at all on Windows, for an unknown reason).
Actual behavior:
After a user opens the Solver UI and changes the Log level to "verbose", then tries to launch a solve, an exception is raised:
# Traceback (most recent call last):
# File "C:\Users\user\Documents\maya\2017\modules\mayaMatchMoveSolver-0.3.3-maya2017-win64\python\mmSolver\tools\solver\ui\solver_window.py", line 626, in apply
# self)
# File "C:\Users\user\Documents\maya\2017\modules\mayaMatchMoveSolver-0.3.3-maya2017-win64\python\mmSolver\tools\solver\lib\collection.py", line 789, in run_solve_ui
# info_fn=info_fn,
# File "C:\Users\user\Documents\maya\2017\modules\mayaMatchMoveSolver-0.3.3-maya2017-win64\python\mmSolver\tools\solver\lib\collection.py", line 623, in execute_collection
# log = mmSolver.logger.get_logger(tmp_log_level)
# File "C:\Users\user\Documents\maya\2017\modules\mayaMatchMoveSolver-0.3.3-maya2017-win64\python\mmSolver\logger.py", line 70, in get_logger
# log.setLevel(level)
# File "C:\Program Files\Autodesk\Maya2017\bin\python27.zip\logging\__init__.py", line 1135, in setLevel
#
# File "C:\Program Files\Autodesk\Maya2017\bin\python27.zip\logging\__init__.py", line 182, in _checkLevel
#
# ValueError: Unknown level: u'VERBOSE'
Steps to Reproduce
Open the Solver UI
Create a valid solve.
Use "Log" menu and choose "Verbose".
Press "Solve" button.
Maya Script Editor displays above error.
Software Versions
Latest development version of mmSolver, on #65 (tools_issue65 branch).
mmSolver version:
[mmSolver version number here]
Maya version: 2017
Operating System (OS): Windows 10 (untested on Linux)
Problem / Feature
Trying to solve with the logging level set to "Verbose" using the Solver UI "Log" menu, causes an error when trying to solve
Expected behavior: If a user turns on "Verbose" logging level the Python logging module will still log "info" level messages, but the
maya.cmds.mmSolver
command will be given the "verbose=True" argument flag. Verbose printing in themmSolver
command should print out a lot of information while the solver is being run - on Linux this is visible in the Terminal, on Windows it's intended to be displayed in the Output Window (but current it is not printed at all on Windows, for an unknown reason).Actual behavior: After a user opens the Solver UI and changes the Log level to "verbose", then tries to launch a solve, an exception is raised:
Steps to Reproduce
Software Versions
Latest development version of mmSolver, on #65 (
tools_issue65
branch).mmSolver version: [mmSolver version number here]
Maya version: 2017
Operating System (OS): Windows 10 (untested on Linux)