File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -232,13 +232,6 @@ LogComponent::EnvVarCheck()
232
232
Enable ((LogLevel)level);
233
233
}
234
234
235
- bool
236
- LogComponent::IsEnabled (const LogLevel level) const
237
- {
238
- // LogComponentEnableEnvVar ();
239
- return level & m_levels;
240
- }
241
-
242
235
bool
243
236
LogComponent::IsNoneEnabled () const
244
237
{
Original file line number Diff line number Diff line change @@ -326,13 +326,22 @@ class LogComponent
326
326
* functions which help implement the logging facility.
327
327
*/
328
328
LogComponent (const std::string& name, const std::string& file, const LogLevel mask = LOG_NONE);
329
+
329
330
/* *
330
331
* Check if this LogComponent is enabled for \c level
331
332
*
332
333
* @param [in] level The level to check for.
333
334
* @return \c true if we are enabled at \c level.
335
+ *
336
+ * @internal
337
+ * This function is defined in the header to enable inlining for better performance. See:
338
+ * https://gitlab.com/nsnam/ns-3-dev/-/merge_requests/2448#note_2527898962
334
339
*/
335
- bool IsEnabled (const LogLevel level) const ;
340
+ bool IsEnabled (const LogLevel level) const
341
+ {
342
+ return level & m_levels;
343
+ }
344
+
336
345
/* *
337
346
* Check if all levels are disabled.
338
347
*
You can’t perform that action at this time.
0 commit comments