Change dir for logs in test_storage_s3

This commit is contained in:
Nikolai Kochetov 2019-11-12 15:09:59 +03:00
parent f2bbfd995a
commit bec3839543

View File

@ -25,7 +25,7 @@ import xml.etree.ElementTree
logging.getLogger().setLevel(logging.INFO)
file_handler = logging.FileHandler("/var/log/clickhouse-server/test-server.log", "a", encoding="utf-8")
file_handler = logging.FileHandler(os.path.join(__file__, "test-server.log"), "a", encoding="utf-8")
file_handler.setFormatter(logging.Formatter("%(asctime)s %(message)s"))
logging.getLogger().addHandler(file_handler)
logging.getLogger().addHandler(logging.StreamHandler())