summaryrefslogtreecommitdiffstats
path: root/src/orchestrator/orchestrator.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-05-28 12:46:01 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-05-31 11:38:53 +0200
commit55715ffb14cd24a27fd70c0ad4154eedc6251976 (patch)
treeffe5affe51665cf2b906d0be7b3060d0078c4bb6 /src/orchestrator/orchestrator.rs
parent45806c89605c155df992c1e5e9917f315e9fa495 (diff)
Fix: Insert shouldn't be done with LogItem::display()
This fixes a nasty bug; because we used the LogItem::display() function to build the log string that was put into the database, the database contained _colorized_ log lines. Because of this, our parsing of the log text later (when reading historical data from the database) failed to parse whether the job was successfull or not. The issue was actually introduced in b3a6458ce34e3065192208826b2fc85edd4761f9, where we changed the `LogItem::display()` implementation. With this fix in place, the log text in the database is corrected again (only for new logs that get put into the database). Fixes: b3a6458ce34e3065192208826b2fc85edd4761f9 ("Add color support in LogItem::display() impl") Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/orchestrator/orchestrator.rs')
0 files changed, 0 insertions, 0 deletions