Skip to content

make log() thread-safe by dropping the log level map

Florian Fischer requested to merge aj46ezos/emper:thread_safe_log_config into master

Concurrently using the std::map LOG_CONFIG can result in a segmentation fault.

To prevent concurrent access to LOG_CONFIG a new constexpr getLevelFor is introduces analogue to getTagFor.

Merge request reports

Loading