-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labs cli remove verbose in favor of --loglevel
+ minor swig adjustments
#4922
Conversation
…nstudio.Workflow() like in Ruby
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Highlighted actual changes, the rest is just formatting noise
auto* const verboseOpt = experimentalApp->add_flag_function( | ||
"--verbose", | ||
[](auto count) { | ||
if (count == 1) { | ||
fmt::print("Setting Log Level to Debug ({})\n", LogLevel::Debug); | ||
openstudio::Logger::instance().standardOutLogger().setLogLevel(LogLevel::Debug); | ||
} else if (count == 2) { | ||
fmt::print("Setting Log Level to Trace ({})\n", LogLevel::Trace); | ||
openstudio::Logger::instance().standardOutLogger().setLogLevel(LogLevel::Trace); | ||
} | ||
}, | ||
"Print the full log to STDOUT - sets verbosity to Debug if given once and Trace if given twice."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actual change is here
SWIGINTERN PyObject* SWIG_From_JsonValue(const Json::Value& value) { | ||
// PyErr_WarnEx(PyExc_UserWarning, "Translating a Json::Value to a PyObject", 1); // Debugging | ||
|
||
if (value.isNull()) { | ||
return Py_None; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
SWIGINTERN VALUE SWIG_From_JsonValue(const Json::Value& value) { | ||
|
||
if (value.isNull()) { | ||
return Qnil; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here
CI Results for f1e0dec:
|
Just curios, why did we remove it? |
whats the new equivalent of --verbose using the --loglevel stuff? |
We put it back. But |
Pull request overview
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.