Skip to content

Commit d5362e5

Browse files
authored
compose: honour FAASM_LOG_LEVEL env. var (#98)
1 parent 7bdd6f5 commit d5362e5

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ running [Faasm](https://github.com/faasm/faasm) cluster.
88
To install `faasmctl` you need a working `pip` (virtual-)environment. Then:
99

1010
```bash
11-
pip install faasmctl==0.49.0
11+
pip install faasmctl==0.50.0
1212
```
1313

1414
## Usage

faasmctl/util/compose.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
DEFAULT_FAASM_ACCLESS_ENABLED = "off"
1515
DEFAULT_FAASM_ATTESTATION_SERVICE_URL = "https://localhost:8443"
1616
DEFAULT_FAASM_CAPTURE_STDOUT = "off"
17+
DEFAULT_FAASM_LOG_LEVEL = "debug"
1718
DEFAULT_FAASM_OVERRIDE_CPU_COUNT = "8"
1819

1920

@@ -144,6 +145,10 @@ def get_compose_env_vars(faasm_checkout, mount_source, ini_file=None):
144145
if "FAASM_CAPTURE_STDOUT" in environ:
145146
env["FAASM_CAPTURE_STDOUT"] = environ["FAASM_CAPTURE_STDOUT"]
146147

148+
env["FAASM_LOG_LEVEL"] = DEFAULT_FAASM_LOG_LEVEL
149+
if "FAASM_LOG_LEVEL" in environ:
150+
env["FAASM_LOG_LEVEL"] = environ["FAASM_LOG_LEVEL"]
151+
147152
if "CONAN_CACHE_MOUNT_SOURCE" in environ:
148153
env["CONAN_CACHE_MOUNT_SOURCE"] = environ["CONAN_CACHE_MOUNT_SOURCE"]
149154

faasmctl/util/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FAASMCTL_VERSION = "0.49.0"
1+
FAASMCTL_VERSION = "0.50.0"
22

33

44
def get_version():

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "faasmctl"
7-
version = "0.49.0"
7+
version = "0.50.0"
88
authors = [
99
{ name="Faasm Team", email="[email protected]" },
1010
]

0 commit comments

Comments
 (0)