add some logging #17
No reviewers
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#17
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feature/logging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes issue #18
This should be configurable with the CLI arguments
If you don't plan to have much things use netbox_agent as a library, I'd try to modify the root logger directly so that you can use the root functions of
logging
and not care to remember where is the logger you should import, i.e. doimport logging; logging.debug(...)
rather thanfrom netbox_agent.logging import logger; logger.debug(...)
.Do we really need this? It seems to me that it makes sense for daemons but not much here, and I'm not sure of what would happen on a read-only filesystem or other weird scenarios.
Also, I feel this should be of DEBUG level; you should only keep the most vital information as INFO.
I've simplified everything
done :) thanks!
implemented!