turbot / steampipe-export

Steampipe Export is a zero-ETL CLI to fetch data from cloud services and APIs. Hundreds of plugins with thousands of documented examples.
https://steampipe.io
Apache License 2.0
8 stars 1 forks source link

Export CLI does not respect the `STEAMPIPE_LOG_LEVEL` environment variable #64

Closed vhadianto closed 3 months ago

vhadianto commented 7 months ago
vscode ➜ ~ $ export STEAMPIPE_LOG_LEVEL=ERROR
vscode ➜ ~ $ steampipe_export_aws
2024/03/26 21:47:01 [INFO] Memoize getBaseClientForAccountUncached
2024/03/26 21:47:01 [INFO] Memoize 0x68245d0 getBaseClientForAccountUncached
2024/03/26 21:47:01 [INFO] Memoize getDefaultRegionUncached
2024/03/26 21:47:01 [INFO] Memoize 0x657b890 getDefaultRegionUncached
2024/03/26 21:47:01 [INFO] Memoize listRawAwsRegionsUncached
2024/03/26 21:47:01 [INFO] Memoize 0x657a380 listRawAwsRegionsUncached
2024/03/26 21:47:01 [INFO] Memoize listRegionsUncached
2024/03/26 21:47:01 [INFO] Memoize 0x6579810 listRegionsUncached
2024/03/26 21:47:01 [INFO] Memoize getClientUncached
2024/03/26 21:47:01 [INFO] Memoize 0x68227e0 getClientUncached
2024/03/26 21:47:01 [INFO] Memoize getCallerIdentityUncached
2024/03/26 21:47:01 [INFO] Memoize 0x65744d0 getCallerIdentityUncached
2024/03/26 21:47:01 [INFO] Memoize getCommonColumnsUncached
2024/03/26 21:47:01 [INFO] Memoize 0x6573e10 getCommonColumnsUncached
2024/03/26 21:47:01 [INFO] Memoize listRegionsForServiceUncached
2024/03/26 21:47:01 [INFO] Memoize 0x6578590 listRegionsForServiceUncached
Error: accepts 1 arg(s), received 0
Usage:
  steampipe_export_aws TABLE_NAME [flags]

Flags:
      --config string       Config file data
  -h, --help                help for steampipe_export_aws
      --limit int           Limit data
      --output string       Output format: csv, json or jsonl (default "csv")
      --select strings      Column data to display
      --where stringArray   where clause data

accepts 1 arg(s), received 0

Tried with lower case error and same behaviour.

pskrbasu commented 3 months ago

Fixed in SDK https://github.com/turbot/steampipe-plugin-sdk/releases/tag/v5.10.2. Plugins will need to be compiled with this SDK version to get the fix.