Skip to content

Commit

Permalink
Set default log level.
Browse files Browse the repository at this point in the history
If not set by CMake. Just to make it compile.
  • Loading branch information
kraiskil committed Dec 12, 2023
1 parent e84e544 commit 9f775b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ struct onnx2c_opts
* 3 DEBUG Notes on generated nodes and tensors.
* 4 TRACE Detailed info on generated nodes and tensors.
*/
#ifndef DEFAULT_LOG_LEVEL
#define DEFAULT_LOG_LEVEL 2
#endif
int logging_level=DEFAULT_LOG_LEVEL; // Default level set by CMake. 1 in release, 4 in debug builds
std::string input_file;
std::map<std::string, uint32_t> dim_defines;
Expand Down

0 comments on commit 9f775b1

Please sign in to comment.