30
30
class rpcserver_thrift : public virtual rpcserver_base, public GNURadio::ControlPortIf
31
31
{
32
32
public:
33
- gr::logger_ptr d_logger;
34
- gr::logger_ptr d_debug_logger;
35
-
36
33
rpcserver_thrift ();
37
34
virtual ~rpcserver_thrift ();
38
35
@@ -82,6 +79,9 @@ class rpcserver_thrift : public virtual rpcserver_base, public GNURadio::Control
82
79
virtual void shutdown ();
83
80
84
81
private:
82
+ static gr::logger_ptr d_logger;
83
+ static gr::logger_ptr d_debug_logger;
84
+
85
85
boost::mutex d_callback_map_lock;
86
86
87
87
typedef std::map<std::string, configureCallback_t> ConfigureCallbackMap_t;
@@ -108,7 +108,7 @@ class rpcserver_thrift : public virtual rpcserver_base, public GNURadio::Control
108
108
msg << _handlerCallback.description
109
109
<< " requires PRIVLVL <= " << _handlerCallback.priv
110
110
<< " to set, currently at: " << cur_priv;
111
- GR_LOG_ERROR (logger , msg.str ());
111
+ GR_LOG_ERROR (d_logger , msg.str ());
112
112
}
113
113
}
114
114
@@ -133,7 +133,7 @@ class rpcserver_thrift : public virtual rpcserver_base, public GNURadio::Control
133
133
msg << " Key " << p.first
134
134
<< " requires PRIVLVL <= " << iter->second .priv
135
135
<< " to set, currently at: " << cur_priv;
136
- GR_LOG_ERROR (logger , msg.str ());
136
+ GR_LOG_ERROR (d_logger , msg.str ());
137
137
}
138
138
} else {
139
139
throw apache::thrift::TApplicationException (__FILE__ " " S__LINE__);
@@ -165,12 +165,12 @@ class rpcserver_thrift : public virtual rpcserver_base, public GNURadio::Control
165
165
msg << " Key " << iter->first
166
166
<< " requires PRIVLVL: <= " << iter->second .priv
167
167
<< " to get, currently at: " << cur_priv;
168
- GR_LOG_ERROR (logger , msg.str ());
168
+ GR_LOG_ERROR (d_logger , msg.str ());
169
169
}
170
170
} else {
171
171
std::ostringstream smsgs;
172
- msg << " Ctrlport Key called with unregistered key (" << p << " )\n " ;
173
- GR_LOG_ERROR (logger, ss .str ());
172
+ smsgs << " Ctrlport Key called with unregistered key (" << p << " )\n " ;
173
+ GR_LOG_ERROR (d_logger, smsgs .str ());
174
174
throw apache::thrift::TApplicationException (__FILE__ " " S__LINE__);
175
175
}
176
176
}
@@ -197,7 +197,7 @@ class rpcserver_thrift : public virtual rpcserver_base, public GNURadio::Control
197
197
std::ostringstream msg;
198
198
msg << " Key " << p.first << " requires PRIVLVL: <= " << p.second .priv
199
199
<< " to get, currently at: " << cur_priv;
200
- GR_LOG_ERROR (logger , msg.str ());
200
+ GR_LOG_ERROR (d_logger , msg.str ());
201
201
}
202
202
}
203
203
@@ -231,7 +231,7 @@ class rpcserver_thrift : public virtual rpcserver_base, public GNURadio::Control
231
231
std::ostringstream msg;
232
232
msg << " Key " << p.first << " requires PRIVLVL: <= " << p.second .priv
233
233
<< " to get, currently at: " << cur_priv;
234
- GR_LOG_ERROR (logger , msg.str ());
234
+ GR_LOG_ERROR (d_logger , msg.str ());
235
235
}
236
236
}
237
237
@@ -268,7 +268,7 @@ class rpcserver_thrift : public virtual rpcserver_base, public GNURadio::Control
268
268
msg << " Key " << iter->first
269
269
<< " requires PRIVLVL: <= " << iter->second .priv
270
270
<< " to get, currently at: " << cur_priv;
271
- GR_LOG_ERROR (logger , msg.str ());
271
+ GR_LOG_ERROR (d_logger , msg.str ());
272
272
}
273
273
} else {
274
274
throw apache::thrift::TApplicationException (__FILE__ " " S__LINE__);
0 commit comments