faust icon indicating copy to clipboard operation
faust copied to clipboard

Allow suppression of info characters when log level set to warn

Open fonty422 opened this issue 2 years ago • 4 comments

Checklist

  • [x ] I have included information about relevant versions
  • [ x] I have verified that the issue persists when using the master branch of Faust.

Steps to reproduce

Run a worker with -l warn

Expected behavior

Only print warning and above

Actual behavior

Rather than suppress the entire output of info, it appears to print a <?> character (which I think represents a 😊)

fonty422 avatar Apr 14 '23 11:04 fonty422

Mind providing an example? A lot of logging done in Faust is controlled by mode-streaming, see https://github.com/faust-streaming/mode/issues/36 for an example of how a lot of logging is controlled by Mode.

wbarnha avatar Apr 17 '23 16:04 wbarnha

image image

An image possibly shows the best example, but I'll also include a copied trace below:

����������������������Waiting 52s for for Faust stream processors t��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� Waiting 51�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

This happens for me with every faust application i have. I assume it's a faust print out, not kafka, or aiokafka related.

fonty422 avatar Apr 17 '23 20:04 fonty422

The info ones here are deliberately turned on for debugging that worker, but I'm starting multiple workers in a single terminal. I can't imagine that's an issue. When all are set to -l info I basically get the familiar start up table for Faust applications, but a stack of these � icons. On a different machine (centos 8 stream), I get a series of interesting icons:

🌓🌕🌗🌒🌔🌖🌘🌒🌔🌖🌘🌒🌒🌖🌗🌓🌓🌘🌒🌘🌑🌕🌕🌒🌔🌖🌒🌘🌑🌘🌗🌔🌗🌑🌓🌖🌒🌒🌗🌑🌗🌘🌔🌔🌑🌕🌔🌖🌗🌓🌗🌖🌓🌘🌒🌔🌖🌘🌒🌔🌖🌖🌓🌗🌘🌖🌘🌒🌔🌖🌘🌑🌓🌔🌖🌘🌒🌔🌖🌘🌓🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌔🌖🌘🌒🌔🌖🌘🌒🌔🌖🌘 😊
🌖🌘🌒🌓🌒🌔🌔🌗🌕🌑🌓😊
🌔🌕🌓🌔🌖🌘🌔🌓🌕🌗🌑 😊
🌖🌘🌒🌔🌓🌔🌖🌘 😊
 😊
🌖🌘🌒🌔 😊
🌑🌓🌕🌒 😊
🌖🌘😊
🌒🌔🌕🌗🌑🌓🌕🌖🌗🌘🌒🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗🌑🌓🌕🌗

fonty422 avatar Apr 17 '23 21:04 fonty422

I was reading through documentation and I came across this: https://faust-streaming.github.io/faust/reference/faust.utils.terminal.spinners.html

I've never seen a spinner before in logs, but it looks like it's producing the patterns you see here, somehow. No other library that is a dependency of Faust, as far as I know, produces such an eccentric behavior.

wbarnha avatar Jun 09 '23 05:06 wbarnha