Mercurial > kallithea
comparison development.ini @ 7788:3ea66ef563f2
kallithea-cli: use null handler to mute all console logging for ssh-serve
Augment logger_root to use the null handler when running ssh-serve. Set the log
level to CRITICAL to filter early and minimize the amount of logging sent to
the null handler.
It is however recommended to configure the system to use some logging facility
that can handle logging for SSH access from many different processes.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 31 Jul 2019 03:15:06 +0200 |
parents | b5b91e854308 |
children | 7c7d6b5c07c7 |
comparison
equal
deleted
inserted
replaced
7787:efd088f7903b | 7788:3ea66ef563f2 |
---|---|
493 | 493 |
494 [formatter_color_formatter_sql] | 494 [formatter_color_formatter_sql] |
495 class = kallithea.lib.colored_formatter.ColorFormatterSql | 495 class = kallithea.lib.colored_formatter.ColorFormatterSql |
496 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | 496 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
497 datefmt = %Y-%m-%d %H:%M:%S | 497 datefmt = %Y-%m-%d %H:%M:%S |
498 | |
499 ################# | |
500 ## SSH LOGGING ## | |
501 ################# | |
502 | |
503 # The default loggers use 'handler_console' that uses StreamHandler with | |
504 # destination 'sys.stderr'. In the context of the SSH server process, these log | |
505 # messages would be sent to the client, which is normally not what you want. | |
506 # By default, when running ssh-serve, just use NullHandler and disable logging | |
507 # completely. For other logging options, see: | |
508 # https://docs.python.org/2/library/logging.handlers.html | |
509 | |
510 [ssh_serve:logger_root] | |
511 level = CRITICAL | |
512 handlers = null | |
513 | |
514 # Note: If logging is configured with other handlers, they might need similar | |
515 # muting for ssh-serve too. |