Skip to content

Debug mode, see more logs with ?debug=true #369

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

Merged
merged 39 commits into from
Aug 28, 2019
Merged

Debug mode, see more logs with ?debug=true #369

merged 39 commits into from
Aug 28, 2019

Conversation

1vn
Copy link
Contributor

@1vn 1vn commented Aug 22, 2019

Closes #328
In imagenet example:

cx predict classifier samples.json debug
$ cx logs classifier  -v | grep api
...
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:model_signature: {'images': {'shape': [-1, -1, -1, 3], 'type': 'float32'}}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:Serving on http://0.0.0.0:8888
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:Serving on http://[::]:8888
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:sample: {'url': 'https://bowwowinsurance.com.au/wp-content/uploads/2018/10/akita-700x700.'}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:pre_inference: {'images': [[[[1. 1. 1.]   [1. 1. 1.]   [1. 1. 1.]   ...   [1. 1. 1.]   [1. 1. 1.] ...]}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:inference: {'response': {'classes': [-0.3301149606704712, -0.3253870904445648, -0.06579694151878357, -0.1973...]}}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:post_inference: {'class': 'Eskimo dog'}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:sample: {'base64': '/9j/4AAQSkZJRgABAQEBLAEsAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRy...'}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:pre_inference: {'images': [[[[1. 1. 1.]   [1. 1. 1.]   [1. 1. 1.]   ...   [1. 1. 1.]   [1. 1. 1.] ...]}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:inference: {'response': {'classes': [-0.3783876299858093, -0.30833104252815247, -0.1648027002811432, -0.1170...]}}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:post_inference: {'class': 'Granny Smith'}
[imagenet----classifier-77cfc96d77-qngjb api] INFO:cortex:[2019-08-28T16:11:46.099194Z] 200 OK

Checklist:

  • Run make test and make lint
  • Test end to end manually (e.g. build/push all images, restart operator, and run cx refresh)
  • Update examples
  • Update documentation (add any new files to summary.md)
  • Merge to master
  • Cherry-pick into release branches if it's a bugfix
  • Check gitbook that docs look good and links function properly
  • Alert team if dev environment changed
  • Delete the branch once it's merged

@deliahu deliahu requested a review from vishalbollu August 23, 2019 05:26
@deliahu deliahu merged commit 89cd04e into master Aug 28, 2019
@deliahu deliahu deleted the debug-mode branch August 28, 2019 22:50
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.

Add debug flag to log samples and intermediates
4 participants