Skip to content

Commit cf6091b

Browse files
author
OutlyingWest
committed
error logs without suppressing and Logging Configuration section in README.md update
1 parent 0d7ed56 commit cf6091b

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,21 @@ When dealing with big data structures, there might be a big runtime overhead at
207207

208208
## Logging Configuration
209209
To adjust logging and obtain more detailed output about the behavior of the scorep_jupyter kernel, refer to the `src/logging_config.py` file.
210-
211210
This file contains configuration options for controlling the verbosity, format, and destination of log messages. You can customize it to suit your debugging needs.
212211

212+
Log files are stored in the following directory:
213+
```
214+
scorep_jupyter_kernel_python/
215+
├── logs_scorep_jupyter/
216+
│ ├── debug.log
217+
│ ├── info.log
218+
└── └── error.log
219+
```
220+
In some cases, you may want to suppress tqdm messages that are saved to error.log (since tqdm outputs to stderr). This can be done using the following environment variable:
221+
```
222+
%env TQDM_DISABLE=1
223+
```
224+
213225
# Future Work
214226

215227
The kernel is still under development.

src/scorep_jupyter/kernel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,10 @@ def read_scorep_stderr(
717717
read_chunk_size=64,
718718
):
719719
def process_stderr_line(line: str):
720+
self.log.error(line.strip())
720721
if spinner_stop_event.is_set():
721722
self.cell_output(line)
722-
self.log.error(line.strip())
723+
723724

724725
self.read_scorep_stream(
725726
stderr, lock, process_stderr_line, read_chunk_size

0 commit comments

Comments
 (0)