Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snseventd
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OTDI Middleware
snseventd
Commits
c46c0be7
Commit
c46c0be7
authored
4 years ago
by
Edward Hicks
Browse files
Options
Downloads
Patches
Plain Diff
make debug one of the standard configurable options
parent
0f5b3efa
No related branches found
No related tags found
No related merge requests found
Pipeline
#92182
passed
4 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config.example.py
+3
-0
3 additions, 0 deletions
config.example.py
snseventd.py
+1
-2
1 addition, 2 deletions
snseventd.py
with
4 additions
and
2 deletions
config.example.py
+
3
−
0
View file @
c46c0be7
...
...
@@ -3,6 +3,9 @@
# Please copy this file to config.py and modify it instead of the example! #
############################################################################
# Enable debug messaging
#DEBUG = True
# The SNS topic we'll listen to for commands (its ARN, not its name)
Config
[
'
topic
'
]
=
'
My-SNS-Eventd-Topic
'
...
...
This diff is collapsed.
Click to expand it.
snseventd.py
+
1
−
2
View file @
c46c0be7
...
...
@@ -11,8 +11,6 @@ import boto3
from
botocore.exceptions
import
ProfileNotFound
,
NoCredentialsError
from
botocore.config
import
Config
DEBUG
=
False
class
bcolors
:
HEADER
=
'
\033
[95m
'
OKBLUE
=
'
\033
[94m
'
...
...
@@ -183,6 +181,7 @@ args = parser.parse_args()
# Global variables, functions, config, etc.
DEBUG
=
False
ret
=
1
# init as a failure code
logFile
=
False
Session
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment