# Enable python prints in scanner?

**URL:** <https://forums.plex.tv/t/enable-python-prints-in-scanner/7120>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [December 29, 2010, 5:12pm UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120 "2010-12-29T17:12:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pipen](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pipen](https://forums.plex.tv/u/pipen)\
**Post date:** [December 29, 2010, 5:12pm UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120/1 "2010-12-29T17:12:38Z")

</div>

Is it possible to get the prints to show up in the system console?  
  
  
  
I just added a print in the Scan method:

```auto

def Scan(path, files, mediaList, subdirs):<br />
  print "SCAN NOW"<br />
......

```

  
  
Doesn't show anything in the Console, which makes it hard to debug

---

<div class="post-metadata">

**Author:** ![raindancing](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/raindancing/32/113458_2.png) [@raindancing](https://forums.plex.tv/u/raindancing)\
**Post date:** [December 29, 2010, 6:13pm UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120/2 "2010-12-29T18:13:14Z")

</div>

Use Log() instead.

---

<div class="post-metadata">

**Author:** ![jam](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jam/32/186050_2.png) [@jam](https://forums.plex.tv/u/jam)\
**Post date:** [December 29, 2010, 6:22pm UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120/3 "2010-12-29T18:22:39Z")

</div>

Log() is a plug-in framework function - these aren’t available in the scanners.  
  
  
  
Have you checked the “Plex Media Scanner.log” file (in ~/Library/Logs) to see if the prints end up in there?

---

<div class="post-metadata">

**Author:** ![pipen](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pipen](https://forums.plex.tv/u/pipen)\
**Post date:** [December 29, 2010, 7:43pm UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120/4 "2010-12-29T19:43:57Z")

</div>

> [@](#):
>
> Log() is a plug-in framework function - these aren't available in the scanners.  
>   
> Have you checked the "Plex Media Scanner.log" file (in ~/Library/Logs) to see if the prints end up in there?

  
  
Thanks for the lead, but can't find any output from the python script, only other output defined in PMS i guess

---

<div class="post-metadata">

**Author:** ![hrcolb0](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hrcolb0/32/380_2.png) [@hrcolb0](https://forums.plex.tv/u/hrcolb0)\
**Post date:** [December 30, 2010, 5:19pm UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120/5 "2010-12-30T17:19:58Z")

</div>

you need to look in Console Message at the top of the sidepane in Console and use print.

---

<div class="post-metadata">

**Author:** ![sansnipple](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sansnipple](https://forums.plex.tv/u/sansnipple)\
**Post date:** [January 13, 2011, 11:59pm UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120/6 "2011-01-13T23:59:19Z")

</div>

pretty sure standard prints should work, i can see the stock plex scanners using them in some places, but it doesn’t look like they show up in the log, to see them run plex media scanner in a terminal. (verbose mode is -v if that helps you too, though for me the prints are showing without it)

---

<div class="post-metadata">

**Author:** ![GryphonAscendant](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@GryphonAscendant](https://forums.plex.tv/u/GryphonAscendant)\
**Post date:** [November 15, 2011, 6:17am UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120/7 "2011-11-15T06:17:59Z")

</div>

Make sure you are looking at the console.app, not the terminal. And AFAIK you have to add a new section to trigger the scan. lots of add section remove section in the debug cycle!

---

<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, 8:56pm UTC](https://forums.plex.tv/t/enable-python-prints-in-scanner/7120/8 "2019-12-20T20:56:02Z")

</div>

Closed on December 20, 2019, 8:56pm UTC

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