erland;340333 Wrote:
>
> You should see them in standard out
>
> Now when I think about it I'm not sure that code actually executes at
> startup, if it doesn't it would explain why you don't see any log
> messages.
> You will probably see the log messages if you show the top rated
> recently played statistics from the TrackStat web or player interface.
>
Yes, I see the messages when I show the top rated recently played
statistics from the TrackStat web:
Code:
--------------------
[08-09-14 22:14:04.0185] Plugins::TrackStat::Plugin::getStatisticContext
(1292) Get statistic context for level=1
[08-09-14 22:14:04.0380] Plugins::TrackStat::Plugin::baseWebPage (1283)
Exiting baseWebPage
[08-09-14 22:14:04.0386] Plugins::TrackStat::Plugin::handleWebStatistics
(2147) Calling webfunction for topratedrecent
[08-09-14 22:14:04.0390] Slim::Utils::Misc::msg (1398) Warning:
[22:14:04.0389] Recent days: 30
[08-09-14 22:14:04.0394] Slim::Utils::Misc::msg (1398) Warning:
[22:14:04.0393] Current time is: 1221423244
[08-09-14 22:14:04.0397] Slim::Utils::Misc::msg (1398) Warning:
[22:14:04.0396] Calculation: 1218831244
[08-09-14 22:14:04.0402] Plugins::TrackStat::Statistics::Base::getTracksWeb
(123) Executing: select tracks.id,count(tracks.url) as sumcount,0 as
added,max(track_history.played) as lastPlayed,avg(track_statistics.rating) as
avgrating from tracks, track_history,track_statistics where tracks.url =
track_history.url and tracks.url=track_statistics.url and tracks.album=1 and
tracks.audio=1 and played>1218831244 group by tracks.url order by avgrating
desc,sumcount desc,rand();
[08-09-14 22:14:04.0414] Plugins::TrackStat::Statistics::Base::getTracksWeb
(135) Got 1 items
[08-09-14 22:14:04.0485] Plugins::TrackStat::Statistics::Base::getTracksWeb
(199) Returning 1 items
[08-09-14 22:14:04.0508] Plugins::TrackStat::Storage::getGroupStatistic (552)
Executing: select avg(case when track_statistics.rating is null then 60 else
track_statistics.rating end) as avgrating, min(case when
track_statistics.rating is null then 0 else track_statistics.rating end) as
minrating from tracks left join track_statistics on tracks.url =
track_statistics.url where tracks.album=1 group by tracks.album;
--------------------
>
> It's starting to feel like this isn't a source code problem, it feels
> more like some kind of strange problem caused by the environment.
>
I think so too. Maybe you shouldn't bother about it. My problem seems
to be solved. And I doubt if we can find the real cause of this
problem. Maybe it has to do with suspendtoram or with some CPAN modules
I installed. Who knows. Besides as said before it seams to be a machine
specific problem since on my other machine also running OpenSuse 10.3
the problem doens't appear.
>
> Does the problem disappear if you disable all other installed third
> party plugins (if you have any) ?
At the moment only TrackStat is installed.
--
boklof
------------------------------------------------------------------------
boklof's Profile: http://forums.slimdevices.com/member.php?userid=18757
View this thread: http://forums.slimdevices.com/showthread.php?t=52278
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins