[libcalamares] Give Logger::Once more flexibility

This commit is contained in:
Adriaan de Groot 2021-09-22 01:41:28 +02:00
parent 049bccbdd8
commit 9be9431970

View File

@ -310,6 +310,14 @@ public:
}
friend CDebug& operator<<( CDebug&&, const Once& );
/** @brief Restore the object to "fresh" state
*
* It may be necessary to allow the Once object to stream the
* function header again -- for instance, after logging an error,
* any following debug log might want to re-introduce the header.
*/
void refresh() { m = true; }
private:
mutable bool m = false;
};