Skip to content

Commit

Permalink
docker-compose: ignore an empty value for DJANGO_LOG_LEVEL
Browse files Browse the repository at this point in the history
Follow-up to this recent change
103e4e9#diff-660079833ff43fc0a9a3c47a9fd0440565efffaa7fc4ef86012cb394cb40af1eR23
the `DJANGO_LOG_LEVEL` environment variable is always set by `podman-compose`.
However, depending on the local configuration, the value may be an empty string.

This change ensure that if we start with an empty value we continue to
fallback on `WARNING` like before.
  • Loading branch information
goneri committed Feb 8, 2024
1 parent 103e4e9 commit de5f1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible_wisdom/main/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
},
"root": {
"handlers": ["console"],
"level": os.getenv("DJANGO_LOG_LEVEL", "WARNING"),
"level": os.getenv("DJANGO_LOG_LEVEL") or "WARNING",
},
}

Expand Down

1 comment on commit de5f1b9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClamAV Virus Definition DB Files:
----
total 361196
-rw-r--r--  1 root root 170479789 Feb  8 11:53 main.cvd
-rw-r--r--  1 root root        69 Feb  8 11:52 freshclam.dat
-rw-r--r--  1 root root 199063552 Feb  8 11:52 daily.cld
-rw-r--r--  1 root root    291965 Feb  8 11:53 bytecode.cvd
drwxr-xr-x 16 root root      4096 Feb  8 21:06 ..
drwxr-xr-x  2 root root      4096 Feb  8 21:06 .
----
File: /var/lib/clamav/bytecode.cvd
Build time: 22 Feb 2023 16:33 -0500
Version: 334
Signatures: 91
Functionality level: 90
Builder: anvilleg
MD5: 0464067a252b1e937012ad34e811065f
Digital signature: urVBCbhJcz8v6i1E6HedDwa8TxBHnJknqg7SE+6JWBtovATpw8MWwS+kvGAi//x5u0LIFwhPvUsgEBBeFiZE0QTTWazOhJ/LfKJK+nODqha6cTvaQdKl2rSbEOv6grv7UONV8eKi383Wv07wfSNYp+lPNpt0QmejKb1TMHAYTA
Verification OK.
----
File: /var/lib/clamav/main.cvd
Build time: 16 Sep 2021 08:32 -0400
Version: 62
Signatures: 6647427
Functionality level: 90
Builder: sigmgr
MD5: 137eccce31aacb21b5a98bb8c21cefd6
Digital signature: twaJBls8V5q64R7QY10AatEtPNuPWoVoxTaNO1jpBg7s5jIMMXpitgG1000YLp6rb0TWkEKjRqxneGTxuxWaWm7XBjsgwX2BRWh/y4fhs7uyImdKRLzQ5y8e2EkSChegF/i8clqfn+1qetq9j4gbktJ3JZpOXPoHlyr2Dv9S/Bg
Verification OK.
----
Scanning Results:
ClamAV 1.0.4/27179/Thu Feb  8 09:37:23 2024
LibClamAV Warning: Max file-size was set to 4194304000 bytes. Unfortunately, scanning files greater than 2147483647 bytes (2 GiB - 1) is not supported.

----------- SCAN SUMMARY -----------
Known viruses: 8684414
Engine version: 1.0.4
Scanned directories: 30982
Scanned files: 190210
Infected files: 0
Data scanned: 6772.36 MB
Data read: 3544.73 MB (ratio 1.91:1)
Time: 2622.723 sec (43 m 42 s)
Start Date: 2024:02:08 21:09:01
End Date:   2024:02:08 21:52:44

Please sign in to comment.