@@ -52,7 +52,9 @@ class RegisterReadRpc : DimRpcInfoWrapper
5252 toConvert = stripPrefix (getString ());
5353 converted = Util::stringToHex (toConvert);
5454 } catch (const AlfException& e) {
55- Logger::get () << " RegisterReadRpc: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
55+ if (kDebugLogging ) {
56+ Logger::get () << " RegisterReadRpc: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
57+ }
5658 return errHex;
5759 }
5860
@@ -74,7 +76,9 @@ class RegisterWriteRpc : DimRpcInfoWrapper
7476 try {
7577 getString ();
7678 } catch (const AlfException& e) {
77- Logger::get () << " RegisterWriteRpc: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
79+ if (kDebugLogging ) {
80+ Logger::get () << " RegisterWriteRpc: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
81+ }
7882 }
7983 }
8084};
@@ -93,7 +97,9 @@ class PatternPlayerRpc : DimRpcInfoWrapper
9397 try {
9498 ret = getString ();
9599 } catch (const AlfException& e) {
96- Logger::get () << " PatternPlayerRpc: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
100+ if (kDebugLogging ) {
101+ Logger::get () << " PatternPlayerRpc: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
102+ }
97103 return errString;
98104 }
99105 return ret;
@@ -127,7 +133,9 @@ class ScaSequenceRpc : DimRpcInfoWrapper
127133 try {
128134 ret = getString ();
129135 } catch (const AlfException& e) {
130- Logger::get () << " ScaSequence: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
136+ if (kDebugLogging ) {
137+ Logger::get () << " ScaSequence: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
138+ }
131139 return errString;
132140 }
133141 return ret;
@@ -165,7 +173,9 @@ class RegisterSequenceRpc : DimRpcInfoWrapper
165173 try {
166174 ret = getString ();
167175 } catch (const AlfException& e) {
168- Logger::get () << " RegisterSequence: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
176+ if (kDebugLogging ) {
177+ Logger::get () << " RegisterSequence: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
178+ }
169179 return errString;
170180 }
171181 return ret;
@@ -203,7 +213,9 @@ class SwtSequenceRpc : DimRpcInfoWrapper
203213 try {
204214 ret = getString ();
205215 } catch (const AlfException& e) {
206- Logger::get () << " SwtSequence: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
216+ if (kDebugLogging ) {
217+ Logger::get () << " SwtSequence: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
218+ }
207219 return errString;
208220 }
209221 return ret;
@@ -241,7 +253,9 @@ class IcSequenceRpc : DimRpcInfoWrapper
241253 try {
242254 ret = getString ();
243255 } catch (const AlfException& e) {
244- Logger::get () << " IcSequence: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
256+ if (kDebugLogging ) {
257+ Logger::get () << " IcSequence: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
258+ }
245259 return errString;
246260 }
247261 return ret;
@@ -278,7 +292,9 @@ class IcGbtI2cWriteRpc : DimRpcInfoWrapper
278292 try {
279293 getString ();
280294 } catch (const AlfException& e) {
281- Logger::get () << " IcGbtI2cWriteRpc: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
295+ if (kDebugLogging ) {
296+ Logger::get () << " IcGbtI2cWriteRpc: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
297+ }
282298 }
283299 }
284300};
@@ -298,7 +314,9 @@ class LlaSessionStartRpc : DimRpcInfoWrapper
298314 try {
299315 ret = getString ();
300316 } catch (const AlfException& e) {
301- Logger::get () << " LlaSessionStart: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
317+ if (kDebugLogging ) {
318+ Logger::get () << " LlaSessionStart: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
319+ }
302320 return errString;
303321 }
304322 return ret;
@@ -331,7 +349,9 @@ class LlaSessionStopRpc : DimRpcInfoWrapper
331349 try {
332350 ret = getString ();
333351 } catch (const AlfException& e) {
334- Logger::get () << " LlaSessionStop: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
352+ if (kDebugLogging ) {
353+ Logger::get () << " LlaSessionStop: " << boost::diagnostic_information (e, true ) << LogErrorDevel << endm;
354+ }
335355 return errString;
336356 }
337357 return ret;
0 commit comments