aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-05-02 18:55:10 +0200
committerSiri Hansen <[email protected]>2018-05-07 12:02:24 +0200
commitde2965827bfb903dcfcd0a97603548b2f8e3a807 (patch)
treef14ccb16dd779c5689bee300d24d89cda53223d5 /lib/kernel/src
parent6aff9ab0a70e1ee3776d601c93f8697cde87b89a (diff)
downloadotp-de2965827bfb903dcfcd0a97603548b2f8e3a807.tar.gz
otp-de2965827bfb903dcfcd0a97603548b2f8e3a807.tar.bz2
otp-de2965827bfb903dcfcd0a97603548b2f8e3a807.zip
Change return type from logger_formatter:format/2
This used to be string() is now changed to unicode:chardata().
Diffstat (limited to 'lib/kernel/src')
-rw-r--r--lib/kernel/src/logger_formatter.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/kernel/src/logger_formatter.erl b/lib/kernel/src/logger_formatter.erl
index 5358652692..8e954f8d98 100644
--- a/lib/kernel/src/logger_formatter.erl
+++ b/lib/kernel/src/logger_formatter.erl
@@ -29,7 +29,7 @@
%%%-----------------------------------------------------------------
%%% API
--spec format(Log,Config) -> String when
+-spec format(Log,Config) -> unicode:chardata() when
Log :: logger:log(),
Config :: #{single_line=>boolean(),
legacy_header=>boolean(),
@@ -38,8 +38,7 @@
max_size=>pos_integer() | unlimited,
depth=>pos_integer() | unlimited,
template=>template(),
- utc=>boolean()},
- String :: string().
+ utc=>boolean()}.
format(#{level:=Level,msg:=Msg0,meta:=Meta},Config0)
when is_map(Config0) ->
Config = add_default_config(Config0),