mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Call closelog in syslog sink's destructor
This commit is contained in:
parent
375b88c191
commit
c44ca12d57
@ -64,7 +64,9 @@ public:
|
|||||||
|
|
||||||
::openlog(ident.c_str(), option, syslog_facility_from_name(facility));
|
::openlog(ident.c_str(), option, syslog_facility_from_name(facility));
|
||||||
}
|
}
|
||||||
virtual ~syslog_sink() = default;
|
virtual ~syslog_sink() {
|
||||||
|
::closelog();
|
||||||
|
}
|
||||||
|
|
||||||
syslog_sink(const syslog_sink&) = delete;
|
syslog_sink(const syslog_sink&) = delete;
|
||||||
syslog_sink& operator=(const syslog_sink&) = delete;
|
syslog_sink& operator=(const syslog_sink&) = delete;
|
||||||
|
Loading…
Reference in New Issue
Block a user