Форум сайта python.su
Добрый день!
import logging
logging.basicConfig(format = '%(levelname)-8s %(message)s', level = logging.DEBUG)
logging.info("""vm.overcommit_ratio is too small, you will not be able to use more than $overcommit_ratio*RAM+SWAP for applications""")
2018-06-06 11:52:15 MY-HOSTNAME root[16065] INFO vm.overcommit_ratio is too small, you will not be able to use more than $overcommit_ratio*RAM+SWAP for applications
Офлайн