Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 2 of 6 FirstFirst 1234 ... LastLast
Results 16 to 30 of 82

Thread: Debug logs time format

  1. #16

    Title
    ViX Beta Tester
    Join Date
    Nov 2017
    Posts
    888
    Thanks
    103
    Thanked 480 Times in 285 Posts
    Probably better to have another field, I reckon the date isn't terribly important.

    Code:
    <4739496.666 09:58.03.324> [eDVBSectionReader] DMX_SET_FILTER pid=18
    or

    Code:
    <4739496.666> 09:58.03.324 [eDVBSectionReader] DMX_SET_FILTER pid=18
    The inclusion of the human readable time could be optional - the timestamp is on a flag

    My only question is whether the < > surrounding the timestamp is significant for any existing tools. Can someone with a bit more Linux background comment?

  2. #17

    Title
    Senior Member
    Join Date
    Nov 2019
    Posts
    221
    Thanks
    28
    Thanked 15 Times in 14 Posts
    Agree about the date. I was just thinking that doing it every 10 or so entries would stop the actual debug info being shoved too far over to the right
    Any option would be fine by me :-)

  3. #18
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    ........ deleted.

  4. #19
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,777
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by smipx View Post
    What prompted this question is that I was getting a spinner for 2 seconds on the hour every hour and I was intrigued to try and discover what it was that was doing it. No a crash so no crash log (and thus no time stamp at the beginning of the log file). I thought it would be a simple case of looking at the debug log and looking at the correct times each hour but it turned out to not be so simple so I kind of gave up.l
    The log contains an entry for showing the spinner when it does so. Just look for "spinner".
    Or look at the log when (just after) the spinner has been showing.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  5. #20
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,777
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by simonc View Post
    My only question is whether the < > surrounding the timestamp is significant for any existing tools. Can someone with a bit more Linux background comment?
    It make parsing out timestamps simpler if you wish to do so (there may be debug lines without them - the current debug line contain some file-system device entry info near the start that someone has left in place for some reason - or just forgotten about....
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. #21
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    How about this...

    Code:
    <03:08:18.3133> [ABM-Scheduler][Scheduleautostart] reason(0), session <__main__.Session instance at 0xb20ef490>
    <03:08:18.3135> [ABM-Scheduler][Scheduleautostart] AutoStart Enabled
    <03:08:18.3137> [ABM-Scheduler][AutoScheduleTimer] Schedule Disabled at Sun 12 Apr 2020 03:08:18 CEST
    <03:08:18.3139> [XMLTVImport] autostart (0) occured at 1586653698.31
    <03:08:18.3147> [XMLTVImport] WakeUpTime now set to -1 (now=1586653698)
    <03:08:18.3152> [JoyneScan-Scheduler][Scheduleautostart] reason(0), session <__main__.Session instance at 0xb20ef490>
    <03:08:18.3153> [JoyneScan-Scheduler][Scheduleautostart] AutoStart Enabled
    <03:08:18.3155> [JoyneScan-Scheduler][AutoScheduleTimer] Schedule Disabled at Sun 12 Apr 2020 03:08:18 CEST
    <03:08:18.3156> [ImageManager] AutoStart Enabled
    <03:08:18.3157> [ImageManager] Backup Schedule Disabled at (now=Sun 12 Apr 2020 03:08:18 CEST)
    <03:08:18.3158> [BackupManager] AutoStart Enabled
    <03:08:18.3159> [BackupManager] Backup Schedule Disabled at (now=Sun 12 Apr 2020 03:08:18 CEST)
    <03:08:18.3411> [Skin] Processing screen 'Screensaver', position=(0, 0), size=(1920 x 1080) for module 'Screensaver'.
    https://github.com/Huevos/enigma2/co...66b9c300e78dcf
    Help keep OpenViX servers online.Please donate!

  7. The Following 4 Users Say Thank You to Huevos For This Useful Post:

    abu baniaz (12-04-20),ccs (12-04-20),simonc (12-04-20),Willo3092 (12-04-20)

  8. #22
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,360
    Thanks
    6,441
    Thanked 9,160 Times in 6,235 Posts
    Looks good. Can we try adding a date? No need for year, IMO.

  9. #23
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    Not sure of the value of the date.

    Options are here:
    http://www.cplusplus.com/reference/ctime/tm/
    Help keep OpenViX servers online.Please donate!

  10. #24
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    Date without year is a problem as it is not clear if it is mm/dd or dd/mm.

    Also, adding pointless chars to the left of the log means the log is right shifted maybe making it necessary at times to scroll horizontally to read it.
    Help keep OpenViX servers online.Please donate!

  11. #25
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    Also this has a big negative point which is, if you are trying to determine the time difference in seconds between one event and another having the log time in seconds is much easier to cope with.

    e.g. if I want to know how long a blindscan took to complete I just subtract one stamp from another. In clock format that is not possible.
    Quote Originally Posted by simonc View Post
    Probably better to have another field, I reckon the date isn't terribly important.

    Code:
    <4739496.666 09:58.03.324> [eDVBSectionReader] DMX_SET_FILTER pid=18
    or

    Code:
    <4739496.666> 09:58.03.324 [eDVBSectionReader] DMX_SET_FILTER pid=18
    The inclusion of the human readable time could be optional - the timestamp is on a flag
    If we go with stamp and date we only need the u_sec on one field.
    Help keep OpenViX servers online.Please donate!

  12. #26

    Title
    ViX Beta Tester
    Join Date
    Nov 2017
    Posts
    888
    Thanks
    103
    Thanked 480 Times in 285 Posts
    I got as far as this yesterday https://github.com/SimonCapewell/eni...-debug-logging, but as ever, getting the C++ build working again after an absence seems to be a black art. Main thing here is that you can chose to have either format or both.

  13. The Following User Says Thank You to simonc For This Useful Post:

    Huevos (12-04-20)

  14. #27
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    Simon can you make this configurable from the UI? If not how do we change from one to the other?

    What box are you using? ARM or MIPS?
    Help keep OpenViX servers online.Please donate!

  15. #28

    Title
    ViX Beta Tester
    Join Date
    Nov 2017
    Posts
    888
    Thanks
    103
    Thanked 480 Times in 285 Posts
    It'd be an environment variable, so perhaps the UI would be able to manipulate the current environment value. If not, you should be able to set it in the shell before starting the e2 executable.

    I think mine is a MIPS box - it's an ET8500

  16. #29
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,614
    Thanks
    2,006
    Thanked 4,947 Times in 3,269 Posts
    That variable is static ( static int debugTime = 3; ). Does that mean it is immutable? I have no idea of the rules of cpp.

    Could be set in the shell script? The shell script can read the settings file to decide what value to send to enigma. That is more or less how debug logs are enabled/disabled at the current time.
    Last edited by Huevos; 12-04-20 at 10:58.
    Help keep OpenViX servers online.Please donate!

  17. #30

    Title
    ViX Beta Tester
    Join Date
    Nov 2017
    Posts
    888
    Thanks
    103
    Thanked 480 Times in 285 Posts
    Static just means it's shared across all instances, like Python's
    Code:
    class MyClass:
        myStatic = 5
    
        def __init__(self):
            print MyClass.myStatic
            myInstance = 23
    Yes, you should be able to test the flag from the shell using
    Code:
    export ENIGMA_DEBUG_TIME=0
    enigma2
    Last edited by simonc; 12-04-20 at 11:29. Reason: static stuff

Page 2 of 6 FirstFirst 1234 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.