log to console as argument
This commit is contained in:
parent
6963fad6e0
commit
7c7719e224
@ -127,7 +127,7 @@ ffplayout also allows the passing of parameters:
|
||||
- `-c, --config` use given config file
|
||||
- `-d, --desktop` preview on desktop
|
||||
- `-f, --folder` use folder for playing
|
||||
- `-l, --log` for user-defined log file
|
||||
- `-l, --log` for user-defined log file, *none* for console output
|
||||
- `-i, --loop` loop playlist infinitely
|
||||
- `-p, --playlist` for playlist file
|
||||
- `-s, --start` set start time in *hh:mm:ss*, *now* for start with first'
|
||||
|
@ -311,7 +311,7 @@ console_handler = logging.StreamHandler()
|
||||
formatter = logging.Formatter('[%(asctime)s] [%(levelname)s] %(message)s')
|
||||
|
||||
|
||||
if _log.to_file:
|
||||
if _log.to_file and _log.path != 'none':
|
||||
file_handler = TimedRotatingFileHandler(_log.path, when='midnight',
|
||||
backupCount=5)
|
||||
file_handler.setFormatter(formatter)
|
||||
|
Loading…
Reference in New Issue
Block a user