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

Log to STDOUT #36

Closed
imbev opened this issue May 24, 2024 · 4 comments
Closed

Log to STDOUT #36

imbev opened this issue May 24, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@imbev
Copy link
Contributor

imbev commented May 24, 2024

I suggest logging app events to standard output. Would a PR for this be welcome?

@Jeffser
Copy link
Owner

Jeffser commented May 24, 2024

sure go ahead, thank you

@Jeffser Jeffser added the enhancement New feature or request label May 24, 2024
@imbev
Copy link
Contributor Author

imbev commented May 24, 2024

WIP PR at #37

@imbev
Copy link
Contributor Author

imbev commented May 24, 2024

While working on this issue, I noticed that verify_if_image_can_be_used appears to be called excessively.

After opening the app and only opening the manage models dialog:

Application started at 09:37:10 PM
DEBUG:alpaca.window:Starting Alpaca's Ollama instance
DEBUG:alpaca.window:Verifying connection
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:11435
[GIN] 2024/05/23 - 21:37:13 | 200 |      45.607µs |       127.0.0.1 | GET      "/"
DEBUG:urllib3.connectionpool:http://127.0.0.1:11435 "GET / HTTP/1.1" 200 17
DEBUG:alpaca.window:Updating list of local models
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:11435
[GIN] 2024/05/23 - 21:37:13 | 200 |     335.942µs |       127.0.0.1 | GET      "/api/tags"
DEBUG:urllib3.connectionpool:http://127.0.0.1:11435 "GET /api/tags HTTP/1.1" 200 377
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Loading history
DEBUG:alpaca.window:Clearing chat
DEBUG:alpaca.window:Updating chat list
DEBUG:alpaca.window:Manage Models button has been clicked
DEBUG:alpaca.window:Updating list of local models
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:11435
[GIN] 2024/05/23 - 21:38:04 | 200 |    1.092334ms |       127.0.0.1 | GET      "/api/tags"
DEBUG:urllib3.connectionpool:http://127.0.0.1:11435 "GET /api/tags HTTP/1.1" 200 377
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used
DEBUG:alpaca.window:Verifying if image can be used

@Jeffser
Copy link
Owner

Jeffser commented May 24, 2024

Hmmm. Once you finish the logging thing I will check that out

@imbev imbev mentioned this issue Jul 17, 2024
@Jeffser Jeffser closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants