Skip to content

Refine log format.#563

Open
lilbedwin wants to merge 1 commit intojina-ai:mainfrom
lilbedwin:github_refine_log
Open

Refine log format.#563
lilbedwin wants to merge 1 commit intojina-ai:mainfrom
lilbedwin:github_refine_log

Conversation

@lilbedwin
Copy link
Copy Markdown

@lilbedwin lilbedwin commented Jun 10, 2020

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'

@lilbedwin
Copy link
Copy Markdown
Author

By the way, I am using mac os system. I think it also works for a Linux distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant