From 9211178e77b1c78a17775c27e1caaee8d0e0756f Mon Sep 17 00:00:00 2001 From: sayali Date: Tue, 22 Sep 2020 18:31:38 -0700 Subject: [PATCH] Added date-time and modified log file name --- lemur/migrations/versions/c301c59688d2_.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lemur/migrations/versions/c301c59688d2_.py b/lemur/migrations/versions/c301c59688d2_.py index 6bd94cfb..2c91783f 100644 --- a/lemur/migrations/versions/c301c59688d2_.py +++ b/lemur/migrations/versions/c301c59688d2_.py @@ -28,12 +28,13 @@ from alembic import op from sqlalchemy.sql import text from lemur.common import utils import time +import datetime -log_file = open('upgrade_logs', 'a') +log_file = open('db_upgrade.log', 'a') def upgrade(): - log_file.write("\n*** Starting new run ***\n") + log_file.write("\n*** Starting new run(%s) ***\n" % datetime.datetime.now()) start_time = time.time() # Update RSA keys using the key length information