Refine log format.#563
Open
lilbedwin wants to merge 1 commit intojina-ai:mainfrom
Open
Conversation
Author
|
By the way, I am using mac os system. I think it also works for a Linux distribution. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The original log format I think is somehow obscure, so I make some refines.
Original log format:
I:GRAPHOPT:[gra:opt:161]:load parameters from checkpoint...
I:GRAPHOPT:[gra:opt:165]:optimize...
I:GRAPHOPT:[gra:opt:173]:freeze...
I:GRAPHOPT:[gra:opt:178]:write graph to a tmp file: /var/folders/qz/9j_tn4357d787rk0j9tl7c0c0000gn/T/tmp2qamgj_m
I:VENTILATOR:[__i:__i: 75]:optimized graph is stored at: /var/folders/qz/9j_tn4357d787rk0j9tl7c0c0000gn/T/tmp2qamgj_m
I:VENTILATOR:[__i:_ru:129]:bind all sockets
I:VENTILATOR:[__i:_ru:133]:open 8 ventilator-worker sockets
I:VENTILATOR:[__i:_ru:136]:start the sink
I:SINK:[__i:_ru:306]:ready
I:VENTILATOR:[__i:_ge:222]:get devices
I:VENTILATOR:[__i:_ge:255]:device map:
The new log format looks like this:
[2020-06-10 10:44:21,380] INFO WORKER-0 [init.py:gen:560] ready and listening!
[2020-06-10 10:44:21,380] INFO WORKER-1 [init.py:gen:560] ready and listening!
[2020-06-10 10:44:21,385] INFO VENTILATOR [init.py:_run:164] all set, ready to serve request!
[2020-06-10 10:45:06,047] INFO VENTILATOR [init.py:_run:180] new config request req id: 1 client: b'1e7f60ea-d5f6-4759-bd75-365aa52a50a5'
[2020-06-10 10:45:06,151] INFO SINK [init.py:_run:348] send config client b'1e7f60ea-d5f6-4759-bd75-365aa52a50a5'
[2020-06-10 10:45:06,154] INFO VENTILATOR [init.py:_run:196] new encode request req id: 2 size: 2 client: b'1e7f60ea-d5f6-4759-bd75-365aa52a50a5'
[2020-06-10 10:45:06,155] INFO SINK [init.py:_run:342] job register size: 2 job id: b'1e7f60ea-d5f6-4759-bd75-365aa52a50a5#2'