Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 25, 2023
1 parent 600640c commit 4317522
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
LOGGER = logging.getLogger()
account_id = None
region = None
VERSION = '1.2.0b45'
VERSION = '1.2.0b46'

# Read Env variables
DEBUG_LOG_LEVEL = os.environ.get('DebugLogLevel', 'INFO')
Expand Down Expand Up @@ -297,7 +297,7 @@ def lambda_handler(
global phz_collection_by_vpc
global count

count['start'] = datetime.now()
count['start'] = datetime.datetime.now()
LOGGER.info("event: %s", str(event) + lineno())
LOGGER.info("context: %s", str(context) + lineno())
LOGGER.info("Sns Topic Mode: %s, sending to %s", str(SNS_ENABLE), SNS_TOPIC_ARN)
Expand Down Expand Up @@ -1005,7 +1005,7 @@ def lambda_handler(
instance_id, lineno())
caller_response.insert(0, 'Successfully created recordsets')

count['end'] = datetime.now()
count['end'] = datetime.datetime.now()
count['elapsed_ms'] = (count['end'] - count['start']).total_seconds() * 1000.0
LOGGER.info(f"{APPNAME} stats: source={event_source} state={state} " +
' '.join([f"{c}={count[c]}" for c in sorted(count.keys())]))
Expand Down

0 comments on commit 4317522

Please sign in to comment.