Skip to content

Commit

Permalink
Move common debugging configs to editable example file
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhlin authored and turetske committed Nov 5, 2024
1 parent 43d9b0d commit 9f9a09d
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 32 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ nfpms:
- src: "systemd/pelican.logrotate"
dst: "/etc/logrotate.d/pelican"
type: config|noreplace
- src: "systemd/examples/90-debugging.yaml"
dst: "/etc/pelican/config.d/90-debugging.yaml"
type: config|noreplace
- dst: "/etc/pelican/config.d"
type: "dir"
file_info:
Expand Down
25 changes: 25 additions & 0 deletions systemd/examples/90-debugging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
#####################################################
# Common Debugging Configuration
#
# Optional configuration for incr;easing log level verbosity
#####################################################

## Set Debug: true to increase verbosity of logging in
## /var/log/pelican
# Debug: false

## Uncomment the following sections to increase component-specific
## logging verbosity
# Logging:
# Level: "Trace"
# Cache:
# Http: "trace"
# Ofs: "trace"
# Pfc: "trace"
# Xrd: "trace"
# Origin:
# Http: "trace"
# Ofs: "trace"
# Scitokens: "trace"
# Xrootd: "trace"
5 changes: 1 addition & 4 deletions systemd/osdf-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ ConfigLocations:
- "/usr/share/pelican/config.d"
- "/etc/pelican/config.d"

## Enable Debug to send detailed logs, including XRootD logs, to the log file
# Debug: false
Logging:
LogLocation: /var/log/pelican/osdf-cache.log
## Valid Levels are Trace, Debug, Info, Warning, Error, Fatal and Panic.
# Level: "Error"

Server:
EnableUI: false
## Set Hostname to the external DNS name this can be accessed over, if
Expand Down
4 changes: 0 additions & 4 deletions systemd/osdf-director.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,5 @@ ConfigLocations:
- "/usr/share/pelican/config.d"
- "/etc/pelican/config.d"

## Enable Debug to send detailed logs to the log file
# Debug: false
Logging:
LogLocation: /var/log/pelican/osdf-director.log
## Valid Levels are Trace, Debug, Info, Warning, Error, Fatal and Panic.
# Level: "Error"
5 changes: 1 addition & 4 deletions systemd/osdf-origin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ ConfigLocations:
- "/usr/share/pelican/config.d"
- "/etc/pelican/config.d"

## Enable Debug to send detailed logs, including XRootD logs, to the log file
# Debug: false
Logging:
LogLocation: /var/log/pelican/osdf-origin.log
## Valid Levels are Trace, Debug, Info, Warning, Error, Fatal and Panic.
# Level: "Error"

Server:
EnableUI: false
## Set Hostname to the external DNS name this can be accessed over, if
Expand Down
4 changes: 0 additions & 4 deletions systemd/osdf-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,5 @@ ConfigLocations:
- "/usr/share/pelican/config.d"
- "/etc/pelican/config.d"

## Enable Debug to send detailed logs to the log file
# Debug: false
Logging:
LogLocation: /var/log/pelican/osdf-registry.log
## Valid Levels are Trace, Debug, Info, Warning, Error, Fatal and Panic.
# Level: "Error"
5 changes: 1 addition & 4 deletions systemd/pelican-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ ConfigLocations:
- "/usr/share/pelican/config.d"
- "/etc/pelican/config.d"

## Enable Debug to send detailed logs, including XRootD logs, to the log file
# Debug: false
Logging:
LogLocation: /var/log/pelican/pelican-cache.log
## Valid Levels are Trace, Debug, Info, Warning, Error, Fatal and Panic.
# Level: "Error"

Federation:
## The main URL for your federation. You must specify this.
DiscoveryUrl:
Expand Down
5 changes: 1 addition & 4 deletions systemd/pelican-director.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ ConfigLocations:
- "/usr/share/pelican/config.d"
- "/etc/pelican/config.d"

## Enable Debug to send detailed logs, including XRootD logs, to the log file
# Debug: false
Logging:
LogLocation: /var/log/pelican/pelican-director.log
## Valid Levels are Trace, Debug, Info, Warning, Error, Fatal and Panic.
# Level: "Error"

Federation:
## The main URL for your federation. You must specify this.
DiscoveryUrl:
5 changes: 1 addition & 4 deletions systemd/pelican-origin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ ConfigLocations:
- "/usr/share/pelican/config.d"
- "/etc/pelican/config.d"

## Enable Debug to send detailed logs, including XRootD logs, to the log file
# Debug: false
Logging:
LogLocation: /var/log/pelican/pelican-origin.log
## Valid Levels are Trace, Debug, Info, Warning, Error, Fatal and Panic.
# Level: "Error"

Federation:
## The main URL for your federation. You must specify this.
DiscoveryUrl:
Expand Down
5 changes: 1 addition & 4 deletions systemd/pelican-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ ConfigLocations:
- "/usr/share/pelican/config.d"
- "/etc/pelican/config.d"

## Enable Debug to send detailed logs, including XRootD logs, to the log file
# Debug: false
Logging:
LogLocation: /var/log/pelican/pelican-registry.log
## Valid Levels are Trace, Debug, Info, Warning, Error, Fatal and Panic.
# Level: "Error"

Federation:
## The main URL for your federation. You must specify this.
DiscoveryUrl:

0 comments on commit 9f9a09d

Please sign in to comment.