Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
MQTT-redis-subscriber
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arjun.b
MQTT-redis-subscriber
Commits
38648c81
Commit
38648c81
authored
Feb 06, 2023
by
arjun.b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging file added
parent
e86164af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app.py
+2
-1
scripts/services/subscriber.py
+1
-2
No files found.
app.py
View file @
38648c81
import
uvicorn
as
uvicorn
from
scripts.config.application_config
import
server_path
,
port_no
from
scripts.logging.logging
import
logger
if
__name__
==
"__main__"
:
try
:
uvicorn
.
run
(
server_path
,
port
=
int
(
port_no
),
reload
=
True
)
except
Exception
as
e
:
print
(
str
(
e
)
)
logger
.
error
(
f
"could not run server: {e}"
)
scripts/services/subscriber.py
View file @
38648c81
...
...
@@ -17,5 +17,4 @@ def subscribe():
subscriber
.
subscribe
()
return
{
"data"
,
"ready for subscribe the topic"
}
except
Exception
as
e
:
logger
.
error
(
"cant subscribe the topic"
)
print
(
e
)
logger
.
error
(
f
"could not subscribe the topic: {e}"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment