1.12.0 Redirected log path: some files created in standard path (4 Viewers)

HTPCSourcer

Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,335
    Home Country
    Germany Germany
    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
     

    Owlsroost

    Retired Team Member
  • Premium Supporter
  • October 28, 2008
    5,540
    5,038
    Cambridge
    Home Country
    United Kingdom United Kingdom

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,335
    Home Country
    Germany Germany
    Any chance of releasing an adjusted version in the future?

    This doesn't look like the right behavior, does it? ;)
     
    Last edited:

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,335
    Home Country
    Germany Germany
    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:

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,335
    Home Country
    Germany Germany
    Hi @Owlsroost (and @regeszter ),
    I'll put the 'log path setting in the registry' mod back on the ToDo list ;)


    I found this in TSReader.cpp:

    Code:
    void LogPath(TCHAR* dest, TCHAR* name)
    {
      TCHAR folder[MAX_PATH];
      SHGetSpecialFolderPath(NULL,folder,CSIDL_COMMON_APPDATA,FALSE);
      _stprintf(dest, _T("%s\\Team Mediaportal\\MediaPortal\\log\\TsReader.%s"), folder, name);
    }
    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 ...
     

    Users who are viewing this thread

    Top Bottom