From 5658cd9e11b88e5f4784be72e0b192b9aa0aa2ba Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 5 Dec 2018 23:19:38 +0100 Subject: [174-warning-for-unused-trace-levels] Made extern debug levels --- src/lib/eval/eval_log.cc | 5 ++++- src/lib/eval/eval_log.h | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/lib/eval') diff --git a/src/lib/eval/eval_log.cc b/src/lib/eval/eval_log.cc index 6492ad69c7..d9aeffa833 100644 --- a/src/lib/eval/eval_log.cc +++ b/src/lib/eval/eval_log.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -13,6 +13,9 @@ namespace isc { namespace dhcp { +extern const int EVAL_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC; +extern const int EVAL_DBG_STACK = isc::log::DBGLVL_TRACE_DETAIL_DATA; + isc::log::Logger eval_logger("eval"); } // namespace dhcp diff --git a/src/lib/eval/eval_log.h b/src/lib/eval/eval_log.h index 0b33c43717..566702545f 100644 --- a/src/lib/eval/eval_log.h +++ b/src/lib/eval/eval_log.h @@ -1,4 +1,4 @@ -// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -19,11 +19,11 @@ namespace dhcp { /// Note that higher numbers equate to more verbose (and detailed) output. // The first level traces normal operations, -const int EVAL_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC; +extern const int EVAL_DBG_TRACE; // Additional information on the calls. Report the values that were // popped from or pushed to the value stack. -const int EVAL_DBG_STACK = isc::log::DBGLVL_TRACE_DETAIL_DATA; +extern const int EVAL_DBG_STACK; /// @brief Eval Logger /// -- cgit v1.2.3