dane22
September 12, 2013, 1:31pm
1
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?
dane22
September 12, 2013, 7:17pm
3
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
dane22
September 12, 2013, 7:19pm
4
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 :)
dane22
September 12, 2013, 7:37pm
6
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
dane22
September 13, 2013, 8:33pm
7
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.
dane22
September 13, 2013, 9:29pm
9
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
dane22
September 13, 2013, 10:43pm
10
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
dane22
September 14, 2013, 12:44am
12
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
dane22
September 14, 2013, 1:59am
13
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.
dane22
September 14, 2013, 10:57pm
15
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
jonnii
December 31, 2013, 4:36am
16
dane22
December 31, 2013, 10:36am
17
Sadly no, but since everything in life is a matter of priority, then I'm sure it'll get fixed in due time
/T
dane22
February 1, 2014, 10:44pm
18
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
system
Closed
December 21, 2019, 12:05am
19
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.