Dash Extensions ServersideOutput stop printing contents of store to log

I have noticed that when using ServersideOutput, it prints the contents of the store to the log. In my case, these can be huge dictionaries and would like to know if there is a way to control this behavior?

Could you post an MWE? What version of dash-extensions are you using?

Hi - please see package versions below. I will post a MWE shortly.

asttokens==2.0.5
backcall==0.2.0
black==22.6.0
Brotli==1.0.9
cachelib==0.9.0
click==8.1.3
dash==2.6.1
dash-core-components==2.0.0
dash-extensions==0.1.5
dash-html-components==2.0.0
dash-iconify==0.1.2
dash-mantine-components==0.10.2
dash-table==5.0.0
debugpy==1.6.2
decorator==5.1.1
dill==0.3.5.1
diskcache==5.4.0
EditorConfig==0.12.3
entrypoints==0.4
et-xmlfile==1.1.0
executing==0.9.1
Flask==2.1.2
Flask-Caching==2.0.0
Flask-Compress==1.12
gunicorn==20.1.0
importlib-metadata==4.12.0
ipykernel==6.15.1
ipython==8.4.0
itsdangerous==2.1.2
jedi==0.18.1
Jinja2==3.1.2
jsbeautifier==1.14.4
jupyter-client==7.3.4
jupyter-core==4.11.1
MarkupSafe==2.1.1
matplotlib-inline==0.1.3
more-itertools==8.13.0
multiprocess==0.70.13
mypy-extensions==0.4.3
nest-asyncio==1.5.5
numpy==1.23.1
openpyxl==3.0.10
packaging==21.3
pandas==1.4.1
parso==0.8.3
pathspec==0.9.0
pexpect==4.8.0
pickleshare==0.7.5
platformdirs==2.5.2
plotly==5.9.0
prompt-toolkit==3.0.30
psutil==5.9.1
ptyprocess==0.7.0
pure-eval==0.2.2
Pygments==2.12.0
pyodbc==4.0.34
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2022.1
pyzmq==23.2.0
six==1.16.0
stack-data==0.3.0
tenacity==8.0.1
tomli==2.0.1
tornado==6.2
traitlets==5.3.0
typing_extensions==4.3.0
wcwidth==0.2.5
Werkzeug==2.0.0
zipp==3.8.1

At first I thought it was something that gunicorns debug log level flag was doing but it is the same behavior with the test server that comes with Dash.

I hit the same problem, and after adding more logging, I believe it’s coming from the print statement in dash_extensions/enrich.py:

def _get_cache_id(func, output, args, session_check=None, arg_check=True):
    all_args = [func.__name__, _create_callback_id(output)]
    if arg_check:
        all_args += list(args)
    if session_check:
        all_args += [_get_session_id()]
    print(all_args)
    return hashlib.md5(json.dumps(all_args).encode()).hexdigest()

Digging through the git history, this was fixed in Drop print statement · emilhe/dash-extensions@d843b63 · GitHub and released in 0.1.6rc1