mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[libcalamares] Give Logger::Once more flexibility
This commit is contained in:
parent
049bccbdd8
commit
9be9431970
1 changed files with 8 additions and 0 deletions
|
@ -310,6 +310,14 @@ public:
|
||||||
}
|
}
|
||||||
friend CDebug& operator<<( CDebug&&, const Once& );
|
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:
|
private:
|
||||||
mutable bool m = false;
|
mutable bool m = false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue