| 237 | } |
| 238 | |
| 239 | std::string_view message::app_name() const { |
| 240 | static std::string its_name = [] { |
| 241 | // Only read the env var once, on first use. This is also threadsafe. |
| 242 | // NOLINTNEXTLINE(concurrency-mt-unsafe): False positve since C++11 |
| 243 | const char* name = std::getenv(VSOMEIP_ENV_APPLICATION_NAME); |
| 244 | return name ? std::string{" "} + name : ""; |
| 245 | }(); |
| 246 | return its_name; |
| 247 | } |
| 248 | |
| 249 | std::string_view message::level_as_view() const { |
| 250 | switch (level_) { |
nothing calls this directly
no outgoing calls
no test coverage detected