Working Docker Logging
This commit is contained in:
parent
f34e53fe1f
commit
8dd069f7b9
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ credentials/
|
||||
.idea/
|
||||
stream_sources/chyron.txt
|
||||
stream_sources/brb.txt
|
||||
*.log
|
||||
@ -3,7 +3,7 @@ services:
|
||||
standalone_command:
|
||||
image: standalone_command
|
||||
volumes:
|
||||
- c:/praxis/logs
|
||||
- "./:/Praxis/"
|
||||
ports:
|
||||
- 6009:6009
|
||||
environment:
|
||||
@ -11,7 +11,7 @@ services:
|
||||
standalone_channelrewards:
|
||||
image: standalone_channelrewards
|
||||
volumes:
|
||||
- c:/praxis/logs
|
||||
- "./:/Praxis/"
|
||||
ports:
|
||||
- 6969:6969
|
||||
environment:
|
||||
@ -19,7 +19,7 @@ services:
|
||||
standalone_lights:
|
||||
image: standalone_lights
|
||||
volumes:
|
||||
- c:/praxis/logs
|
||||
- "./:/Praxis/"
|
||||
ports:
|
||||
- 42069:42069
|
||||
environment:
|
||||
@ -27,18 +27,18 @@ services:
|
||||
standalone_twitchscript:
|
||||
image: standalone_twitchscript
|
||||
volumes:
|
||||
- c:/praxis/logs
|
||||
- "./:/Praxis/"
|
||||
environment:
|
||||
- ISDOCKER=cat
|
||||
standalone_twitch_pubsub:
|
||||
image: standalone_twitch_pubsub
|
||||
volumes:
|
||||
- c:/praxis/logs
|
||||
- "./:/Praxis/"
|
||||
environment:
|
||||
- ISDOCKER=cat
|
||||
standalone_discordscript:
|
||||
image: standalone_discordscript
|
||||
volumes:
|
||||
- c:/praxis/logs
|
||||
- "./:/Praxis/"
|
||||
environment:
|
||||
- ISDOCKER=cat
|
||||
@ -4,6 +4,12 @@ from flask import request
|
||||
import commands.loader as command_loader
|
||||
from commands.command_base import AbstractCommand
|
||||
|
||||
import os
|
||||
import praxis_logging
|
||||
praxis_logger_obj = praxis_logging.praxis_logger()
|
||||
praxis_logger_obj.init(os.path.basename(__file__))
|
||||
praxis_logger_obj.log("\n -Starting Logs: " + os.path.basename(__file__))
|
||||
|
||||
api = flask.Flask(__name__)
|
||||
# enable/disable this to get web pages of crashes returned
|
||||
api.config["DEBUG"] = True
|
||||
|
||||
Loading…
Reference in New Issue
Block a user