added "Connected to …" log message
This commit is contained in:
parent
293600447b
commit
9f94317b7d
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.7)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project (expandurl-mastodon
|
project (expandurl-mastodon
|
||||||
VERSION 0.6.3
|
VERSION 0.6.4
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ int main(int argc, char *argv[])
|
||||||
signal(SIGTERM, signal_handler);
|
signal(SIGTERM, signal_handler);
|
||||||
curlpp::initialize();
|
curlpp::initialize();
|
||||||
openlog("expandurl-mastodon", LOG_CONS | LOG_NDELAY | LOG_PID, LOG_LOCAL1);
|
openlog("expandurl-mastodon", LOG_CONS | LOG_NDELAY | LOG_PID, LOG_LOCAL1);
|
||||||
syslog(LOG_NOTICE, "Program started by User %d", getuid());
|
syslog(LOG_NOTICE, "Program started by user %d", getuid());
|
||||||
|
|
||||||
Listener listener;
|
Listener listener;
|
||||||
listener.start();
|
listener.start();
|
||||||
|
|
|
@ -122,6 +122,7 @@ const void Listener::start()
|
||||||
{
|
{
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
}
|
}
|
||||||
|
syslog(LOG_NOTICE, "Connected to %s", _instance.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
const void Listener::stop()
|
const void Listener::stop()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user