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

Plugins and logging #496

Merged
merged 7 commits into from
Apr 26, 2021
Merged

Plugins and logging #496

merged 7 commits into from
Apr 26, 2021

Conversation

ryanmerolle
Copy link
Contributor

Related Issue: #461

New Behavior

  • Default logging enabled with a variable defined in the netbox.env
  • Added plugins.py example file.

Contrast to Current Behavior

  • Logging is not a default out of the box behavior. I am suggesting we add this in.
  • A plugins wiki page exists, but adding a file example in the repo that works if uncommented, is ideal.

Discussion: Benefits and Drawbacks

  • We have taken the stance, with good reason, have such examples in the only in the wiki, but whether in the wiki or the repo, users will ask for support on the feature even though its not a netbox-docker specific item.
  • Adding logging is likely a useful behavior for all whether production or non-production deployments.
  • Maybe we should add this plugins config to extras.py so people can set a plugins.py without worrying about it being overwritten by the repo on a git pull.

Changes to the Wiki

  • Update Plugins wiki page to reference the new file.
  • Add a Logging wiki page.

Proposed Release Note Entry

  • Added logging as a default feature to netbox-docker. See Logging wiki page for more info.
  • Added plugins.py example file.

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

@ryanmerolle
Copy link
Contributor Author

@cimnine let me know your thoughts and I can adjust and remove the draft tag. I would love to get this in the next release.

@ryanmerolle ryanmerolle marked this pull request as ready for review April 20, 2021 12:53
@ryanmerolle ryanmerolle mentioned this pull request Apr 20, 2021
3 tasks
@cimnine cimnine changed the base branch from release to develop April 23, 2021 19:35
@cimnine
Copy link
Collaborator

cimnine commented Apr 23, 2021

I don't like that the logging.py file is not all commented-in as well. Because I believe that NetBox Docker should initially ship a NetBox that is – regarding defaults – as close to the upstream as we can. What do you think?

@ryanmerolle
Copy link
Contributor Author

I am happy to comment it out. It is good enough that a working example is included.

Any idea what is up with the 3 blocking checks? They have been waiting for status to be reported for some time now. Maybe my new commit will get it going.

@ryanmerolle
Copy link
Contributor Author

Let me know if you want me to remove or comment out the ENV var for logging level as well.

@cimnine
Copy link
Collaborator

cimnine commented Apr 25, 2021

Let me know if you want me to remove or comment out the ENV var for logging level as well.

I'd go with removing it, as it will otherwise confuse users who change it that it's having no effect at all.

@cimnine cimnine added bug This issue describes a confirmed bug. enhancement The issue describes an enhancement that we would like to implement in the future. and removed bug This issue describes a confirmed bug. labels Apr 25, 2021
@cimnine cimnine added this to the 1.2.0 milestone Apr 25, 2021
@cimnine cimnine merged commit 604ff3b into netbox-community:develop Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue describes an enhancement that we would like to implement in the future.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants