Compare commits
No commits in common. "e42163443241431d59ec9b81e89aeabf122b12e7" and "888ed4db9dd973753e98636ac5a4090357c08da2" have entirely different histories.
e421634432
...
888ed4db9d
|
@ -6,8 +6,7 @@ import coloredlogs
|
|||
verboselogs.install()
|
||||
|
||||
# Create a logger object.
|
||||
hlog = logging.getLogger('Houston_Log')
|
||||
rlog = logging.getLogger('Robot_Log')
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# By default the install() function installs a handler on the root logger,
|
||||
# this means that log messages from your code and log messages from the
|
||||
|
@ -18,22 +17,15 @@ rlog = logging.getLogger('Robot_Log')
|
|||
# If you don't want to see log messages from libraries, you can pass a
|
||||
# specific logger object to the install() function. In this case only log
|
||||
# messages originating from that logger will show up on the terminal.
|
||||
coloredlogs.install(level='INFO',
|
||||
logger=hlog,
|
||||
fmt='%(asctime)s,%(msecs)03d %(hostname)s %(levelname)s %(message)s')
|
||||
coloredlogs.install(level='INFO', logger=logger)
|
||||
|
||||
coloredlogs.install(level='INFO',
|
||||
logger=rlog,
|
||||
fmt='%(asctime)s,%(msecs)03d Robot %(levelname)s %(message)s')
|
||||
|
||||
hlog.info('Lewis Companion Software Started.')
|
||||
hlog.success('Ready to robot!')
|
||||
rlog.info('Logging message from robot!')
|
||||
logger.info('Lewis Companion Software Started.')
|
||||
logger.success('Ready to robot!')
|
||||
|
||||
# Junk~
|
||||
while True:
|
||||
try:
|
||||
hlog.debug('Nothing to do.')
|
||||
logger.debug('Nothing to do.')
|
||||
time.sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
cd /opt/lewis-crawler/companion_software/dashboard
|
||||
|
||||
git pull
|
||||
|
||||
pipenv install -r requirements.txt
|
||||
|
||||
pipenv run python dash.py
|
||||
|
|
Loading…
Reference in New Issue