Skip to content

0.13.0

Latest
Compare
Choose a tag to compare
@xmik xmik released this 05 Feb 10:54
· 3 commits to master since this release
  • Support multiple levels of log output produced by Dojo: silent, error, warn, info, debug
  • Preserve log output setting into the docker containers too, to configure how much output is visible from the dojo image scripts. (You'll need to rebuild your images for this to take effect)

Log level setup example

Since this release, you now have more control over how much output you see. Default behaviour, using INFO log level:

$ ./bin/dojo --log-level=info  -c Dojofile.build 
2024/02/05 23:57:08 [ 1]  INFO: (main.main) Dojo version 0.13.0
2024/02/05 23:57:08 [17]  INFO: (main.DockerDriver.HandleRun) docker command will be:
 docker run --rm -v /encrypted/ssd/code/dojo:/dojo/work -v /home/ewa:/dojo/identity:ro -v /tmp/dojo-environment-multiline-dojo-dojo-2024-02-0523-57-08-9143870684282127602:/etc/dojo.d/variables/00-multiline-vars.sh -v /tmp/dojo-environment-bash-functions-dojo-dojo-2024-02-0523-57-08-9143870684282127602:/etc/dojo.d/variables/01-bash-functions.sh --env-file=/tmp/dojo-environment-dojo-dojo-2024-02-0523-57-08-9143870684282127602 -v /tmp/.X11-unix:/tmp/.X11-unix --security-opt seccomp:unconfined -ti --name=dojo-dojo-2024-02-0523-57-08-9143870684282127602 kudulab/golang-dojo:892ba15188ba0753d0050f293faa74b364c8beb8
05-02-2024 10:57:08 Dojo entrypoint info: Sourcing: /etc/dojo.d/variables/00-multiline-vars.sh
05-02-2024 10:57:08 Dojo entrypoint info: Sourcing: /etc/dojo.d/variables/01-bash-functions.sh
05-02-2024 10:57:08 Dojo entrypoint info: Sourcing: /etc/dojo.d/variables/50-variables.sh
05-02-2024 10:57:08 Dojo entrypoint info: Running: /etc/dojo.d/scripts/01-fail-fast.sh
05-02-2024 10:57:08 Dojo entrypoint info: Running: /etc/dojo.d/scripts/20-setup-identity.sh
05-02-2024 10:57:09 Dojo entrypoint info: Running: /etc/dojo.d/scripts/50-fix-uid-gid.sh
05-02-2024 10:57:09 Dojo 50-fix-uid-gid info: olduid == newuid == 1000, nothing to do
05-02-2024 10:57:09 Dojo entrypoint info: Running: /etc/dojo.d/scripts/90-run-user.sh
05-02-2024 10:57:09 Dojo entrypoint info: dojo init finished (interactive shell)
[05-02-2024 10:57:09]0 dojo@e5bb90386fb8(golang-dojo):/dojo/work$ exit
exit

and new behaviour, using ERROR log level:

$ ./bin/dojo --log-level=error  -c Dojofile.build 
[05-02-2024 10:57:09]0 dojo@feeba8efadb4(golang-dojo):/dojo/work$ exit
exit