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

add volume and logging for todolist app #93

Merged
merged 4 commits into from
Nov 11, 2022

Conversation

weshayutin
Copy link
Contributor

We would have to rebuild the container and push to quay.. but.. this is an option

@weshayutin
Copy link
Contributor Author

/hold

@weshayutin weshayutin added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 8, 2022
@weshayutin weshayutin removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 8, 2022
@weshayutin
Copy link
Contributor Author

latest log on openshift:


time="2022-11-08T18:35:53Z" level=info msg="Success: Attached volume and redirected logs to /tmp/log/todoapp/app.log" func=main.main file="/build/todolist.go:178"
time="2022-11-08T18:35:53Z" level=info msg="A running instance of the db: todolist not found, creating" func=main.main file="/build/todolist.go:184"
(/build/todolist.go:182)
[2022-11-08 18:35:53] Error 1146: Table 'todolist.todo_item_models' doesn't exist
(/build/todolist.go:186)
[2022-11-08 18:35:53] [9.70ms] CREATE TABLE `todo_item_models` (`id` int AUTO_INCREMENT,`description` varchar(255),`completed` boolean , PRIMARY KEY (`id`))
[0 rows affected or returned ]
time="2022-11-08T18:35:53Z" level=info msg="Prepopulate the db" func=main.prepopulate file="/build/todolist.go:157"
time="2022-11-08T18:35:53Z" level=info msg="Starting Todolist API server" func=main.main file="/build/todolist.go:192"
time="2022-11-08T18:36:26Z" level=info msg="Get Incomplete TodoItems" func=main.GetIncompleteItems file="/build/todolist.go:125"
time="2022-11-08T18:36:26Z" level=info msg="Get completed TodoItems" func=main.GetCompletedItems file="/build/todolist.go:118"
time="2022-11-08T18:36:29Z" level=info msg="Add new TodoItem. Saving to database." func=main.CreateItem file="/build/todolist.go:57" description=hi
time="2022-11-08T18:36:30Z" level=info msg="Add new TodoItem. Saving to database." func=main.CreateItem file="/build/todolist.go:57" description=there
time="2022-11-08T18:36:32Z" level=info msg="Add new TodoItem. Saving to database." func=main.CreateItem file="/build/todolist.go:57" description=everyone

@hhpatel14
Copy link

/lgtm

@hhpatel14
Copy link

/LGTM

* see updated README
* oc exec now works
* hostname:8000/log to get the contents of applog volume
@weshayutin weshayutin merged commit 247e985 into konveyor:master Nov 11, 2022
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

4 participants