Log.Debug

Okay......I'm trying to write a small plugin, and my code is scattered with lines like:

 

Log.Debug("Yes....Now here") :rolleyes:

 

But here's what puzzles me.

 

I now switched off all logging, and even restarted the PMS, and yet the debug log entries still show in my plugin log file?

I would have expected Log.Info messages to be present, but not the others though

 

 

Running 0.9.8.6 here on QNAP

 

And takers?

 

/Tommy

What does your Info.plist file look like?

What does your Info.plist file look like?

<?xml version="1.0" encoding="UTF-8"?>



	CFBundleIdentifier
	com.plexapp.plugins.findUnmatch
	PlexClientPlatforms
	*
	PlexFrameworkVersion
	2
	PlexPluginCodePolicy
	Elevated


And also com.plexapp.system.log contains debug info, so I think it's a bug in the framework, or?

/Tommy

And also com.plexapp.system.log contains debug info, so I think it's a bug in the framework, or?

/Tommy

Seems possible. TBH, I rarely use  Log.Debug. I'll see if I can reproduce it on my setup and then maybe we can pester Jam about it :)

Seems possible. TBH, I rarely use  Log.Debug. I'll see if I can reproduce it on my setup and then maybe we can pester Jam about it :)

Cool....standing by here, and huge thanks for the feedback so far

/Tommy

What exactly does a setting in the info.plist file named 

PlexPluginDebug
	1

do ?

And is there somewhere a list about all valid settings for the info.plist?

And reason for asking is that setting was found in the framework bundle among others

/T

What exactly does a setting in the info.plist file named

PlexPluginDebug
	1

do ?

And is there somewhere a list about all valid settings for the info.plist?

And reason for asking is that setting was found in the framework bundle among others

/T


Setting that to "1" rather than "0" turns on debug logging. AFAIK, there is not currently a comprehensive list of valid plist flags and their uses.

Kinda what I deducted as well, so here's a small Q:

If the top bundle from Plex has this set to 1, wouldn't all plugin's below it then run in debug mode?

Take a peek @ the Plex provided plugin's, like :

scanners

framework

webclient

webmanager

system

Me smell a glitch here, or?

/Tommy

And still no dice here.....

Switched all to 0, yet still it's logging debug info.

So it has to be hardcoded somewhere above the bundles....Read "The server App"

And speaking of it, did you manage to duplicate this?

/Tommy

Not yet. Haven’t had much dev/play time this week :frowning:

Not yet. Haven't had much dev/play time this week :-(

Fair enough, and was simply asking, not pushing :wub:

What I suspect here, is that devs, due to their job, always are running in either debug or verbose mode, and as such, never detected this.

Speaking of verbose, could you also perhaps ask Jam to extend the option of Log.Verbose to be included?

/Tommy

And to add.....

STD would be the following:

Switch PMS log level to lowest possible level, and then restart PMS.

Then look in the plugin log dir, @ the file named com.plexapp.system.log

It's full of debug logging

/T

Confirmed.

I'll bring it to the attention of the dev team. Thanks.

Confirmed.

I'll bring it to the attention of the dev team. Thanks.

Cool, but also please tell them, that many of their plugin's are set to always do debug logging in their info.plist files

Best Regards

Tommy

Came from https://forums.plex.tv/topic/91782-pms-plugins-log-settings-in-preferencesxml-are-ignored/

..any updates? 3 months since you notified developers.

Came from https://forums.plex.tv/topic/91782-pms-plugins-log-settings-in-preferencesxml-are-ignored/

..any updates? 3 months since you notified developers.

Sadly no, but since everything in life is a matter of priority, then I'm sure it'll get fixed in due time

/T

Hi Mike.

Care to ping the devs here, and reason for asking is that this also has an impact on HDD sleeping, since if unneeded logging takes place, the hard drives will never sleep

Best Regards

Tommy

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