Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine log format. #563

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lilbedwin
Copy link

@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
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.

None yet

1 participant