Skip to content

Commit

Permalink
fix: change default logfmt config to json in JS build
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Oct 18, 2023
1 parent e3ae3f3 commit 72a71dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/zenroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ zenroom_t *zen_init(const char *conf, const char *keys, const char *data) {
// set zero rngseed as config flag
ZZ->zconf_rngseed[0] = '\0';
ZZ->exitcode = 1; // success
#if defined(__EMSCRIPTEN__)
ZZ->logformat = LOG_JSON;
#else
ZZ->logformat = LOG_TEXT;
#endif
ZZ->str_maxiter[0] = '1';
ZZ->str_maxiter[1] = '0';
ZZ->str_maxiter[2] = '0';
Expand Down

0 comments on commit 72a71dc

Please sign in to comment.