1.12.0 - Redirected log path: some files created in standard path

Discussion in 'Archive' started by HTPCSourcer, August 9, 2015.

  1. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,505
    Likes Received:
    1,105
    Gender:
    Male
    Ratings:
    +2,372 / 21
    Home Country:
    Germany Germany
    Show System Specs
    Hello,



    I have changed the standard path for logs (and databases, etc.) to point to my central server. All logs are now created there, except

    evr.log
    TsReader.log


    which are still stored in the standard path C:\ProgramData\Team MediaPortal\MediaPortal\log.

    @Owlsroost , I trust that you know your code better than anybody else ;).

    Regards,
    HTPCSourcer
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,532
    Likes Received:
    2,821
    Location:
    Cambridge
    Ratings:
    +4,122 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
  4. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,505
    Likes Received:
    1,105
    Gender:
    Male
    Ratings:
    +2,372 / 21
    Home Country:
    Germany Germany
    Show System Specs
    Any chance of releasing an adjusted version in the future?

    This doesn't look like the right behavior, does it? ;)
     
    Last edited: August 9, 2015
  5. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,532
    Likes Received:
    2,821
    Location:
    Cambridge
    Ratings:
    +4,122 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
  6. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,532
    Likes Received:
    2,821
    Location:
    Cambridge
    Ratings:
    +4,122 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I'll put the 'log path setting in the registry' mod back on the ToDo list ;)
     
    • Thank You! Thank You! x 3
  7. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,505
    Likes Received:
    1,105
    Gender:
    Male
    Ratings:
    +2,372 / 21
    Home Country:
    Germany Germany
    Show System Specs
    Setting the thread to bug...
     
  8. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,532
    Likes Received:
    2,821
    Location:
    Cambridge
    Ratings:
    +4,122 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    It's not a bug - it's working as intended....(bugs are things that do not work as intended, we are talking here about a feature upgrade).
     
    • Like Like x 1
    • Agree Agree x 1
  9. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,505
    Likes Received:
    1,105
    Gender:
    Male
    Ratings:
    +2,372 / 21
    Home Country:
    Germany Germany
    Show System Specs
    This is more semantic. If MePo is suposed to allow changing pointers to directory paths, then I would expect all its functions to correctly work based on such pointers. Is this a bug? Maybe not, but to call this "working as intended" would not be my understanding.
     
    Last edited: August 9, 2015
    • Agree Agree x 1
  10. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    10,505
    Likes Received:
    1,105
    Gender:
    Male
    Ratings:
    +2,372 / 21
    Home Country:
    Germany Germany
    Show System Specs
    Hi @Owlsroost (and @regeszter ),

    I found this in TSReader.cpp:

    Code (C):
    1. void LogPath(TCHAR* dest, TCHAR* name)
    2. {
    3.   TCHAR folder[MAX_PATH];
    4.   SHGetSpecialFolderPath(NULL,folder,CSIDL_COMMON_APPDATA,FALSE);
    5.   _stprintf(dest, _T("%s\\Team Mediaportal\\MediaPortal\\log\\TsReader.%s"), folder, name);
    6. }
    7.  
    Is this the absolute path definition that is responsible for tsreader.log getting written to the standard directory in C:\ProgramData instead of the %dirs% path from mediaportaldirs.xml?

    Still looking for evr.log ...
     
    • Like Like x 1
  11. Owlsroost
    • Team MediaPortal

    Owlsroost Development Group

    Joined:
    October 28, 2008
    Messages:
    5,532
    Likes Received:
    2,821
    Location:
    Cambridge
    Ratings:
    +4,122 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!