Skip to content

Commit d208e19

Browse files
committed
Remove hardcoded logstyle
Signed-off-by: JCW <[email protected]>
1 parent c6f8297 commit d208e19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xrpld/core/detail/Config.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ Config::loadFromString(std::string const& fileContents)
690690
if (getSingleSection(secConfig, SECTION_DEBUG_LOGFILE, strTemp, j_))
691691
DEBUG_LOGFILE = strTemp;
692692

693-
LOG_STYLE = LogStyle::Json;
693+
if (getSingleSection(secConfig, SECTION_LOG_STYLE, strTemp, j_))
694+
LOG_STYLE = LogStyle::fromString(strTemp);
694695

695696
if (getSingleSection(secConfig, SECTION_SWEEP_INTERVAL, strTemp, j_))
696697
{

0 commit comments

Comments
 (0)