summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-14 20:35:43 +0000
committerDavid Robillard <d@drobilla.net>2010-12-14 20:35:43 +0000
commitd9a54049e99f6c3963e1f48e04b9a7adcd81899b (patch)
tree42fb887b2a97c96f550110b88ab18891c6d9da2f /src/main.cpp
parent14921f4a865f0eb06b45cd70e3ee71e42a8148e0 (diff)
downloadpatchage-d9a54049e99f6c3963e1f48e04b9a7adcd81899b.tar.gz
patchage-d9a54049e99f6c3963e1f48e04b9a7adcd81899b.tar.bz2
patchage-d9a54049e99f6c3963e1f48e04b9a7adcd81899b.zip
Use Raul::log for console logging.
Print error message if unsubscribed client is not found (Re: ticket #137). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2684 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 223ae25..2087e2a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -15,13 +15,15 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <iostream>
#include <libgnomecanvasmm.h>
#include <glibmm/exception.h>
+#include "raul/log.hpp"
+
#include "Patchage.hpp"
-int main(int argc, char** argv)
+int
+main(int argc, char** argv)
{
try {
@@ -34,13 +36,13 @@ int main(int argc, char** argv)
app.run(*patchage.window());
} catch (std::exception& e) {
- std::cerr << "Caught exception, aborting. Error message was: "
- << e.what() << std::endl;
+ Raul::error << "Caught exception, aborting. Error message was: "
+ << e.what() << std::endl;
return 1;
} catch (Glib::Exception& e) {
- std::cerr << "Caught exception, aborting. Error message was: "
- << e.what() << std::endl;
+ Raul::error << "Caught exception, aborting. Error message was: "
+ << e.what() << std::endl;
return 1;
}