Skip to content

Conversation

@ashraffouda
Copy link
Collaborator

Description

improve logging in zos

Changes

List of changes this PR includes

Related Issues

threefoldtech/zos#2657

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstring

Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
log.Debug().Str("ns", ns).Msg("starting container")
log.Info().
Str("namespace", ns).
Str("data", fmt.Sprintf("%+v", data)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data includes envvars, i don't think we should expose that

Uint64("memory-bytes", uint64(vm.Memory))

// Log network interfaces with IPs and MACs
for idx, nic := range nics {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can implement a serializer for the interface, to construct a consistent printable string, instead of duplicating in ch.go

@Omarabdul3ziz
Copy link
Contributor

this for sure will help with debugging.

also will help if we went with the suggestion to make log level configurable against zos-config and set it to debug to reflect on all logs we have which will give more context also

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.

3 participants