NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 18 19 20 21 22 … 34 Next »
Turn off Logging

 
  • 0 Vote(s) - 0 Average
Turn off Logging
thopoint
Offline

Junior Member

USA
Posts: 2
Threads: 1
Joined: Jun 2021
#1
2021-06-18, 05:08 PM
Hi all,

I've looked everywhere and tried everything, to turn off logging, or at least set it to just errors, instead of DEBUG and INFO.

How do I stop logging to nrecord.log or at least tone it down to errors/critical only.

I have modified config.xml and Config-master-don'edit.xml (yeah I know) to change <LogLevel> in <General> section to ERROR and NONE but it doesn't change anything.  I still keep seeing INFO and DEBUG messages in nrecord.log.  What is the set ov valid values here???

I have modified appsettings.json in the /opt/nextpvr folder, following microsoft standards, changing to below and that changes nothing as well.

So what gives.

I am running version 5.1.2 on debian 10.  Installed via https://nextpvr.com/nextpvr-helper.deb

  "Logging": {
    "LogLevel": {
        "Default": "None",
        "Microsoft": "None"
    },
    "IncludeScopes": false,
    "Debug": {
      "LogLevel": {
        "Default": "None",
        "Microsoft": "None"
      }
    },
    "Console": {
      "LogLevel": {
        "Default": "None",
        "Microsoft": "None"
      }
    }
  }
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#2
2021-06-18, 06:58 PM
You can edit config.xml, and set <LogLevel>ERROR</LogLevel> to get minimal logging. You'll probably need to restart the server before this change will take affect.

For the next release I've added the ability to specify <LogLevel>NONE</LogLevel>

That said, if you're ever going to want support for an issue, we're going to need the logs with it set to the default <LogLevel>DEBUG</LogLevel>
thopoint
Offline

Junior Member

USA
Posts: 2
Threads: 1
Joined: Jun 2021
#3
2021-06-18, 07:28 PM
Thanks. Yes I know I need to enable logging for support. If I ever have any issues I can't work out I'll re-enable.

I figured it should have been simple, but when I tried modifying config.xml and ran service nextpvr-server restart, I was still seeing DEBUG messages - so I was questioning if I was missing something.

I tried again and rebooted my server this time. Now I have less logging. Thanks.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#4
2021-06-18, 07:34 PM
You should not have had to reboot the server, you probably just missed something. You might need to stop the server before editing the file, the server will rewrite config.xml

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#5
2021-06-18, 08:59 PM
Yeah I checked it doesn’t need the server to be restarted. Picked it up here dynamically
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode