added "Connected to …" log message

This commit is contained in:
tastytea 2018-05-24 11:19:59 +02:00
parent 293600447b
commit 9f94317b7d
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (expandurl-mastodon
VERSION 0.6.3
VERSION 0.6.4
LANGUAGES CXX
)

View File

@ -54,7 +54,7 @@ int main(int argc, char *argv[])
signal(SIGTERM, signal_handler);
curlpp::initialize();
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.start();

View File

@ -122,6 +122,7 @@ const void Listener::start()
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
syslog(LOG_NOTICE, "Connected to %s", _instance.c_str());
}
const void Listener::stop()