This repository has been archived by the owner on Jun 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Weijian Zeng
committed
Jan 24, 2020
1 parent
df632e7
commit 5b07870
Showing
6 changed files
with
301 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import network as networktables | ||
from web import tornado_server | ||
|
||
import logging | ||
# initiate the top level logger | ||
# logging.basicConfig( | ||
# level=logging.INFO, | ||
# format="%(asctime)s [%(name)s] [%(levelname)-5.5s] %(message)s", | ||
# handlers=[ | ||
# logging.StreamHandler() | ||
# ] | ||
# ) | ||
#initiate the top level logger | ||
|
||
logger = logging.getLogger('app') | ||
|
||
|
||
def main(): | ||
|
||
tornado_server.start() | ||
|
||
if __name__ == '__main__': | ||
|
||
logging.basicConfig( | ||
level=logging.INFO, | ||
format="%(asctime)s [%(name)s] [%(levelname)-5.5s] %(message)s", | ||
handlers=[ | ||
logging.StreamHandler() | ||
] | ||
) | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.