##// END OF EJS Templates
add debug statements for kernel clients connecting to channels
MinRK -
Show More
@@ -147,8 +147,10 b' class KernelClient(LoggingConfigurable, ConnectionFileMixin):'
147 def shell_channel(self):
147 def shell_channel(self):
148 """Get the shell channel object for this kernel."""
148 """Get the shell channel object for this kernel."""
149 if self._shell_channel is None:
149 if self._shell_channel is None:
150 url = self._make_url('shell')
151 self.log.debug("connecting shell channel to %s", url)
150 self._shell_channel = self.shell_channel_class(
152 self._shell_channel = self.shell_channel_class(
151 self.context, self.session, self._make_url('shell')
153 self.context, self.session, url
152 )
154 )
153 return self._shell_channel
155 return self._shell_channel
154
156
@@ -156,8 +158,10 b' class KernelClient(LoggingConfigurable, ConnectionFileMixin):'
156 def iopub_channel(self):
158 def iopub_channel(self):
157 """Get the iopub channel object for this kernel."""
159 """Get the iopub channel object for this kernel."""
158 if self._iopub_channel is None:
160 if self._iopub_channel is None:
161 url = self._make_url('iopub')
162 self.log.debug("connecting iopub channel to %s", url)
159 self._iopub_channel = self.iopub_channel_class(
163 self._iopub_channel = self.iopub_channel_class(
160 self.context, self.session, self._make_url('iopub')
164 self.context, self.session, url
161 )
165 )
162 return self._iopub_channel
166 return self._iopub_channel
163
167
@@ -165,8 +169,10 b' class KernelClient(LoggingConfigurable, ConnectionFileMixin):'
165 def stdin_channel(self):
169 def stdin_channel(self):
166 """Get the stdin channel object for this kernel."""
170 """Get the stdin channel object for this kernel."""
167 if self._stdin_channel is None:
171 if self._stdin_channel is None:
172 url = self._make_url('stdin')
173 self.log.debug("connecting stdin channel to %s", url)
168 self._stdin_channel = self.stdin_channel_class(
174 self._stdin_channel = self.stdin_channel_class(
169 self.context, self.session, self._make_url('stdin')
175 self.context, self.session, url
170 )
176 )
171 return self._stdin_channel
177 return self._stdin_channel
172
178
@@ -174,8 +180,10 b' class KernelClient(LoggingConfigurable, ConnectionFileMixin):'
174 def hb_channel(self):
180 def hb_channel(self):
175 """Get the hb channel object for this kernel."""
181 """Get the hb channel object for this kernel."""
176 if self._hb_channel is None:
182 if self._hb_channel is None:
183 url = self._make_url('hb')
184 self.log.debug("connecting heartbeat channel to %s", url)
177 self._hb_channel = self.hb_channel_class(
185 self._hb_channel = self.hb_channel_class(
178 self.context, self.session, self._make_url('hb')
186 self.context, self.session, url
179 )
187 )
180 return self._hb_channel
188 return self._hb_channel
181
189
General Comments 0
You need to be logged in to leave comments. Login now