Browse Source

change log to file only

readme
Edoardo Putti 8 years ago
parent
commit
b1d94d822b
1 changed files with 8 additions and 12 deletions
  1. +8
    -12
      request_server.py

+ 8
- 12
request_server.py View File

@ -7,18 +7,14 @@ import sys
import time
import uuid
logging.basicConfig(level= logging.INFO)
logger = logging.getLogger(__name__)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler = logging.FileHandler('/home/request/request_server.log')
handler.setFormatter(formatter)
logger.addHandler(handler)
logfile= '/home/request/request_server.log'
logging.basicConfig(
filename= logfile,
format= '%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level= logging.INFO,
)
logger = logging.getLogger('request_server'))
REQUESTS_PATH = "/var/lib/ca_manager/requests"


Loading…
Cancel
Save