Skip to content

Conversation

@big-r81
Copy link
Contributor

@big-r81 big-r81 commented Mar 22, 2023

Correct env variable ERL_AFLAGS to suppress sasl_error_logger output.

Suppressing messages like:

=ERROR REPORT==== 22-Mar-2023::22:47:36.788000 ===
Error in process <0.998.0> with exit value:
{database_does_not_exist,
    [{mem3_shards,load_shards_from_db,"_users",
         [{file,"src/mem3_shards.erl"},{line,430}]},
     {mem3_shards,load_shards_from_disk,1,
         [{file,"src/mem3_shards.erl"},{line,405}]},
     {mem3_shards,load_shards_from_disk,2,
         [{file,"src/mem3_shards.erl"},{line,434}]},
     {mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,100}]},
     {fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},
     {chttpd_auth_cache,ensure_auth_ddoc_exists,2,
         [{file,"src/chttpd_auth_cache.erl"},{line,214}]},
     {chttpd_auth_cache,listen_for_changes,1,
         [{file,"src/chttpd_auth_cache.erl"},{line,160}]}]}

    chttpd_socket_buffer_size_test:51: small_recbuf...[0.006 s] ok
=INFO REPORT==== 22-Mar-2023::22:47:36.897000 ===
    application: chttpd
    exited: stopped
    type: temporary

=INFO REPORT==== 22-Mar-2023::22:47:36.897000 ===
    application: fabric
    exited: stopped
    type: temporary

Correct env variable `ERL_AFLAGS` to suppress `sasl_error_logger` output.

Suppressing messages like:
```
=ERROR REPORT==== 22-Mar-2023::22:47:36.788000 ===
Error in process <0.998.0> with exit value:
{database_does_not_exist,
    [{mem3_shards,load_shards_from_db,"_users",
         [{file,"src/mem3_shards.erl"},{line,430}]},
     {mem3_shards,load_shards_from_disk,1,
         [{file,"src/mem3_shards.erl"},{line,405}]},
     {mem3_shards,load_shards_from_disk,2,
         [{file,"src/mem3_shards.erl"},{line,434}]},
     {mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,100}]},
     {fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},
     {chttpd_auth_cache,ensure_auth_ddoc_exists,2,
         [{file,"src/chttpd_auth_cache.erl"},{line,214}]},
     {chttpd_auth_cache,listen_for_changes,1,
         [{file,"src/chttpd_auth_cache.erl"},{line,160}]}]}

    chttpd_socket_buffer_size_test:51: small_recbuf...[0.006 s] ok
=INFO REPORT==== 22-Mar-2023::22:47:36.897000 ===
    application: chttpd
    exited: stopped
    type: temporary

=INFO REPORT==== 22-Mar-2023::22:47:36.897000 ===
    application: fabric
    exited: stopped
    type: temporary
```
@big-r81 big-r81 force-pushed the suppress-sasl-error-logger-output branch from b7a430c to 841da7f Compare March 22, 2023 22:12
Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

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

+1

ah nice, those were looking quite gnarly in the logs

@big-r81
Copy link
Contributor Author

big-r81 commented Mar 22, 2023

yes, and it bloats the output with no more useful info...

@big-r81 big-r81 merged commit 09dca4e into main Mar 22, 2023
@big-r81 big-r81 deleted the suppress-sasl-error-logger-output branch March 22, 2023 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants