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

PANOS_LOGGING environment variable does not support osx_curl #106

Open
freedge opened this issue Jun 5, 2023 · 1 comment
Open

PANOS_LOGGING environment variable does not support osx_curl #106

freedge opened this issue Jun 5, 2023 · 1 comment
Labels

Comments

@freedge
Copy link

freedge commented Jun 5, 2023

Describe the bug

PANOS_LOGGING environment variable does not support osx_curl

Expected behavior

it should be possible to activate osx_curl logging with

PANOS_LOGGING=osx_curl

Current behavior

Error: Unknown logging requested: osx_curl

Possible solution

add more logging options in

pango/client.go

Lines 1356 to 1377 in dba4c15

if len(ll) > 0 {
var lv uint32
for _, x := range ll {
switch x {
case "quiet":
lv |= LogQuiet
case "action":
lv |= LogAction
case "query":
lv |= LogQuery
case "op":
lv |= LogOp
case "uid":
lv |= LogUid
case "xpath":
lv |= LogXpath
case "send":
lv |= LogSend
case "receive":
lv |= LogReceive
default:
return fmt.Errorf("Unknown logging requested: %s", x)

or use the "logging" argument in the provider block

Steps to reproduce

  1. export PANOS_LOGGING=osx_curl
  2. terraform apply

Screenshots

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
  • Operating System and version (desktop or mobile):
  • Link to your project:
@freedge freedge added the bug label Jun 5, 2023
@welcome-to-palo-alto-networks
Copy link

🎉 Thanks for opening your first issue here! Welcome to the community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant