konveyor / mig-demo-apps

A collection of apps ideal for migration demos
Apache License 2.0
15 stars 70 forks source link

add volume and logging for todolist app #93

Closed weshayutin closed 1 year ago

weshayutin commented 1 year ago

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

weshayutin commented 1 year ago

/hold

weshayutin commented 1 year ago

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 commented 1 year ago

/lgtm

hhpatel14 commented 1 year ago

/LGTM