Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
3432-kernel-Output-shell_history-errors-to-logg...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3432-kernel-Output-shell_history-errors-to-logger-instead.patch of Package erlang
From d51a34620f6bd4f3de4bf26e5e664c2670eb2acf Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Mon, 1 Mar 2021 16:55:15 +0100 Subject: [PATCH 02/11] kernel: Output shell_history errors to logger instead of stderr --- lib/kernel/src/group_history.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/kernel/src/group_history.erl b/lib/kernel/src/group_history.erl index 6eddb30716..131bfad394 100644 --- a/lib/kernel/src/group_history.erl +++ b/lib/kernel/src/group_history.erl @@ -20,6 +20,8 @@ -module(group_history). -export([load/0, add/1]). +-include_lib("kernel/include/logger.hrl"). + %% Make a minimal size that should encompass set of lines and then make %% a file rotation for N files of this size. -define(DEFAULT_HISTORY_FILE, "erlang-shell-log"). @@ -427,7 +429,7 @@ show_custom_provider_faulty_add_return(Provider, Return) -> show(Key, Format, Args) -> case get(Key) of undefined -> - io:format(standard_error, Format, Args), + ?LOG_ERROR(Format, Args), put(Key, true), ok; true -> -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor