Skip to content

Commit e5dd55c

Browse files
committed
revert debug code
Signed-off-by: Junpu Fan <junpu@amazon.com>
1 parent 6d07422 commit e5dd55c

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/scripts/buildspec-cb-fleet.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ phases:
3232
3333
echo "Listing all runtime environments after clean up ..."
3434
ls -la ${RUNTIME_ROOT_VOLUME} | grep ${RUNTIME_PATTERN}
35-
- |
36-
TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` \
37-
&& curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/instance-id
3835
3936
build:
4037
commands:

scripts/telemetry/deep_learning_container.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,24 +360,20 @@ def main():
360360
Invoke bucket query
361361
"""
362362
# Logs are not necessary for normal run. Remove this line while debugging.
363-
# logging.getLogger().disabled = True
363+
logging.getLogger().disabled = True
364364

365-
# logging.basicConfig(level=logging.ERROR)
366-
logging.basicConfig(level=logging.DEBUG)
365+
logging.basicConfig(level=logging.ERROR)
367366

368367
token = None
369368
instance_id = None
370369
region = None
371370
token = get_imdsv2_token()
372-
logging.debug("token: {}".format(token))
373371
if token:
374372
instance_id = _retrieve_instance_id(token)
375373
region = _retrieve_instance_region(token)
376374
else:
377375
instance_id = _retrieve_instance_id()
378376
region = _retrieve_instance_region()
379-
logging.debug("instance_id: {}".format(instance_id))
380-
logging.debug("region: {}".format(region))
381377

382378
bucket_process = multiprocessing.Process(target=query_bucket, args=(instance_id, region))
383379
tag_process = multiprocessing.Process(target=tag_instance, args=(instance_id, region))

0 commit comments

Comments
 (0)