Add folder local/ to .gitignore #5868

Closed
opened 2025-12-29 19:33:38 +01:00 by adam · 1 comment
Owner

Originally created by @Houtek on GitHub (Jan 3, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.3

Feature type

Change to existing functionality

Proposed functionality

The topic "Troubleshooting LDAP" in the documentation for LDAP configuration mentions how to enable LDAP logging.
In the example it says "'filename': '/opt/netbox/logs/django-ldap-debug.log'".
When you do a "git status" you'll get the message

Untracked files:
(use "git add ..." to include in what will be committed)

   logs/

When /logs would be added to .gitignore, the message wouldn't appear.

Use case

Users who aren't that deep into git and its output wouldn't be unsettled

Database changes

No response

External dependencies

No response

Originally created by @Houtek on GitHub (Jan 3, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.3 ### Feature type Change to existing functionality ### Proposed functionality The topic "Troubleshooting LDAP" in the documentation for LDAP configuration mentions how to enable LDAP logging. In the example it says "'filename': '/opt/netbox/logs/django-ldap-debug.log'". When you do a "git status" you'll get the message > Untracked files: > (use "git add <file>..." to include in what will be committed) > > logs/ When /logs would be added to .gitignore, the message wouldn't appear. ### Use case Users who aren't that deep into git and its output wouldn't be unsettled ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 19:33:38 +01:00
adam closed this issue 2025-12-29 19:33:38 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 3, 2022):

I'm not sure it makes sense to add logs/ as an exempt location. Typically, you'd export logs to whatever location is typical for your platform (e.g. /var/logs) rather than the local directory. However, I can think of several cases where it would make sense to have a general-purpose local/ subdirectory that is exempted from git: I'm going to tweak this FR a bit to do that instead. (You'll then be able to use e.g. local/logs/ if desired.)

@jeremystretch commented on GitHub (Jan 3, 2022): I'm not sure it makes sense to add `logs/` as an exempt location. Typically, you'd export logs to whatever location is typical for your platform (e.g. `/var/logs`) rather than the local directory. However, I can think of several cases where it would make sense to have a general-purpose `local/` subdirectory that is exempted from git: I'm going to tweak this FR a bit to do that instead. (You'll then be able to use e.g. `local/logs/` if desired.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5868