# DEBUGGING Channel Code

**URL:** <https://forums.plex.tv/t/debugging-channel-code/21919>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [October 2, 2012, 2:16pm UTC](https://forums.plex.tv/t/debugging-channel-code/21919 "2012-10-02T14:16:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rc.vempati](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rc.vempati](https://forums.plex.tv/u/rc.vempati)\
**Post date:** [October 2, 2012, 2:16pm UTC](https://forums.plex.tv/t/debugging-channel-code/21919/1 "2012-10-02T14:16:06Z")

</div>

I am trying to DEBUG the values that are parsed with in my channel and I was able to use Log function to output the variable values to the channel log file. But if I use the same Log function with ServiceCode.pys file I am getting error.   
  
  
  
I tried this in VEVO channel. I am trying to find the index and bitrate values passed to the function PlayVideo to find what is the default index and bitrate of a video is picking while playing the channel using ROKU. Is there any alternative to log this info into the log file of vevo ?  
  
  
  
The reason I am trying to find this is when I play VEVO channel the video always picks with low quality. Checking what is the bitrate the video is playing when it is accessed through roku.   
  
  
  
Please advice.   
  
  
  
thanks  
  
Ram

---

<div class="post-metadata">

**Author:** ![rc.vempati](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rc.vempati](https://forums.plex.tv/u/rc.vempati)\
**Post date:** [October 2, 2012, 2:44pm UTC](https://forums.plex.tv/t/debugging-channel-code/21919/2 "2012-10-02T14:44:42Z")

</div>

I figured out the issue turns like because of indentation. After removing the indentation (TABBING) I am able to log the info into log file.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 10:18pm UTC](https://forums.plex.tv/t/debugging-channel-code/21919/3 "2019-12-20T22:18:03Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
