aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2015-04-17 22:04:31 +0200
committerRichard Carlsson <[email protected]>2015-05-22 14:58:43 +0200
commit441842ce023bf8ef5dc84f2d5061b0b7c79c8130 (patch)
tree49af3281442e2a1799fdae4fd922eb5077b8347c /erts/emulator/beam
parentb5f3973cc50a193be868e672b2ced6dd619427c4 (diff)
downloadotp-441842ce023bf8ef5dc84f2d5061b0b7c79c8130.tar.gz
otp-441842ce023bf8ef5dc84f2d5061b0b7c79c8130.tar.bz2
otp-441842ce023bf8ef5dc84f2d5061b0b7c79c8130.zip
Map error logger warnings to warning messages by default
Also fix and document the broken +We option.
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/erl_init.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 86d3416423..a905cbf81e 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -622,7 +622,7 @@ void erts_usage(void)
erts_fprintf(stderr, "-v turn on chatty mode (GCs will be reported etc)\n");
- erts_fprintf(stderr, "-W<i|w> set error logger warnings mapping,\n");
+ erts_fprintf(stderr, "-W<i|w|e> set error logger warnings mapping,\n");
erts_fprintf(stderr, " see error_logger documentation for details\n");
erts_fprintf(stderr, "-zdbbl size set the distribution buffer busy limit in kilobytes\n");
erts_fprintf(stderr, " valid range is [1-%d]\n", INT_MAX/1024);
@@ -1250,7 +1250,7 @@ erl_start(int argc, char **argv)
verbose = DEBUG_DEFAULT;
#endif
- erts_error_logger_warnings = am_error;
+ erts_error_logger_warnings = am_warning;
while (i < argc) {
if (argv[i][0] != '-') {
@@ -1993,11 +1993,12 @@ erl_start(int argc, char **argv)
case 'i':
erts_error_logger_warnings = am_info;
break;
+ case 'e':
+ erts_error_logger_warnings = am_error;
+ break;
case 'w':
erts_error_logger_warnings = am_warning;
break;
- case 'e': /* The default */
- erts_error_logger_warnings = am_error;
default:
erts_fprintf(stderr, "unrecognized warning_map option %s\n", arg);
erts_usage();