Just more logging inline information.
This commit is contained in:
parent
48bb65e1d5
commit
29114cb7cb
3 changed files with 7 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ from linspector.core.monitors import Monitors
|
|||
|
||||
# i currently only increase the 3rd number because the goal is that 0.19.* will become the first
|
||||
# stable version.
|
||||
__version__ = '0.19.58.dev1'
|
||||
__version__ = '0.19.59.dev1'
|
||||
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ max_threads = 2048
|
|||
; i recommend to set this to your number of CPU cores available when running on a dedicated Linspector host. but if the
|
||||
; system is running other services you should lower this value when you have too high CPU load. if you have enough
|
||||
; resources this value really can be higher then your available CPU cores.
|
||||
max_processes = 12
|
||||
max_processes = 24
|
||||
; if timezone is not set, UTC is used by default.
|
||||
timezone = CET
|
||||
; this is for scheduling jobs to not run all at the same time. this should be set to the lowest interval you use. it
|
||||
|
|
|
|||
|
|
@ -23,6 +23,11 @@ logger = getLogger('linspector')
|
|||
# https://stackoverflow.com/questions/641420/how-should-i-log-while-using-multiprocessing-in-python/48668567
|
||||
# or i can log to one single file using stdout data and let the operating system do the file
|
||||
# rotation but if the pythonic way works fine i should implement it directly in Linspector.
|
||||
# more stuff:
|
||||
# https://pythondjangorestapi.com/python-logging-the-ultimate-guide-to-logging/
|
||||
# and now i found another libray for handling this, but it would make Linspector depending on the
|
||||
# next 3rd party library in the core (need to discover features because i want log rotating):
|
||||
# https://pypi.org/project/loguru/
|
||||
# maybe subclass it from logging.Logger...?
|
||||
class Log:
|
||||
def __init__(self, configuration, stdout, verbose):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue