ljunkie / rarflix

Plex Roku Channel - original source from https://github.com/plexinc/roku-client-public
MIT License
117 stars 45 forks source link

Logging - minor changes to make it easier to import into excel #222

Closed sa2000a closed 10 years ago

sa2000a commented 10 years ago

Hi.. My memory issue did not go away - there must be more memory leaks in the windows PMS. Anyway.. I am collating more evidence for Max

I am trying to process the log file (for my benefit) using excel vba - basically merging split lines for long request text and I am using the date / time prefix as a way to determine if a new line or concatenated line.

There are a number of logged lines that are not continuation lines but have no date/time prefix. Is this because they are dumped as an array to the log eg

22/2/14 19:25:43 : Done. Total Files left:0 debug_log68.txt plex_screensaver debug_log67.txt debug_log66.txt debug_log65.txt debug_log64.txt debug_log63.txt debug_log62.txt debug_log61.txt debug_log60.txt debug_log59.txt 22/2/14 19:25:43 : screen PurgeCachedImages() called

and this one 22/2/14 19:05:14 : Built GDM player response:HELLO * HTTP/1.0 Name: Roku 2 XS Port: 8324 Product: Plex for Roku Content-Type: plex/media-player Protocol: plex Protocol-Version: 1 Protocol-Capabilities: timeline,playback,navigation Version: 3.1.33 Resource-Identifier: 1CG2D2001770 Device-Class: stb 22/2/14 19:05:17 : Popping screen 1 and cleaning up 2 breadcrumbs

Is there anything that can be done or do i just need to put special code in for all the special cases - including the first line ------ Running ------

Thanks

simon

ljunkie commented 10 years ago

Those were extra debugging lines using print. I will be removing those later, so no they will not be changed. They are very far and few between and the time stamps in between would be enough for a timestamp.

sa2000a commented 10 years ago

It is ok to remove the temporary debug_logxx. But the other example re the Roku & Plex channel properties is important and will need to stay.

I can withdraw this request.

At the moment when I am processing the telnet console log file in vba:

if line startswith date-time then this is a new debug message else the text is appended to the preceding debug message

What i was going to do was to pick all the url's and any responses as separate columns in excel

It does not matter. There are very few exceptions and I can manually handle them. I just thought it would make it easier to automate post-processing of captured telnet logs

please ignore this request. you can close it