Moved StructuredMessage and Logger to separate file; refactored pisa-cli logging using new format

This commit is contained in:
Salvatore Ingala
2019-10-09 10:20:39 +07:00
parent c524319027
commit dee93e5c62
14 changed files with 26 additions and 46 deletions

View File

@@ -12,7 +12,7 @@ SUPPORTED_HASH_FUNCTIONS = ["SHA256"]
SUPPORTED_CIPHERS = ["AES-GCM-128"]
# Configure logging
logging.basicConfig(format='%(asctime)s %(message)s', level=logging.INFO, handlers=[
logging.basicConfig(format='%(message)s', level=logging.INFO, handlers=[
logging.FileHandler(CLIENT_LOG_FILE),
logging.StreamHandler()
])