From 9f94317b7d5020a871fbd61fd6648d73b47f6dc6 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 24 May 2018 11:19:59 +0200 Subject: [PATCH] =?UTF-8?q?added=20"Connected=20to=20=E2=80=A6"=20log=20me?= =?UTF-8?q?ssage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- src/main.cpp | 2 +- src/masto.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba2b3ee..a83bf87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (expandurl-mastodon - VERSION 0.6.3 + VERSION 0.6.4 LANGUAGES CXX ) diff --git a/src/main.cpp b/src/main.cpp index 5a8fa1f..3083c8a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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(); diff --git a/src/masto.cpp b/src/masto.cpp index 99e8ee6..2fab7ac 100644 --- a/src/masto.cpp +++ b/src/masto.cpp @@ -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()