Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptingislife committed Feb 5, 2020
1 parent 6fb617b commit 56720b9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/logging_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def get_secret():

secret_name = os.environ['LOGGING_KEY']
secret_name = 'LogDNAIngestionKey' # os.environ['LOGGING_KEY']
region_name = "us-east-1"

# Create a Secrets Manager client
Expand All @@ -26,8 +26,7 @@ def get_secret():
# See https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
# We rethrow the exception by default.

secret = ''
decoded_binary_secret = ''
secret = 'default'

try:
get_secret_value_response = client.get_secret_value(
Expand Down Expand Up @@ -67,7 +66,7 @@ def get_secret():

def log_scan(db_data):
logdna = get_secret()

logdata = {
"lines": [
{
Expand Down

0 comments on commit 56720b9

Please sign in to comment.