summaryrefslogtreecommitdiff
path: root/NT/src/graph.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-01-23 14:03:07 +0000
committerTim Redfern <tim@eclectronics.org>2014-01-23 14:03:07 +0000
commitefebf20348daca798c22cbac770d47e9151f941f (patch)
tree05c1a4148047d89271b2566c8924d872ad023938 /NT/src/graph.cpp
parenta897d2e0ba7744c818eed46441347cfb4f384613 (diff)
NT logging structure
Diffstat (limited to 'NT/src/graph.cpp')
-rw-r--r--NT/src/graph.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/NT/src/graph.cpp b/NT/src/graph.cpp
index ef638cc..e671238 100644
--- a/NT/src/graph.cpp
+++ b/NT/src/graph.cpp
@@ -4,16 +4,17 @@ using namespace Rotor;
using namespace std;
bool Graph::check_audio(string audio,string path){
+ Logger& logger = Logger::get(id);
if (audio!="") {
audio_filename=path+audio;
Poco::File f=Poco::File(audio_filename);
if (f.exists()) {
//here we should check the audio is actually valid
audio_loaded=true;
- cerr<<"Rotor: loading "<<audio_filename<<" from graph"<<endl;
+ logger.information("Loading "+audio_filename+" from graph");
return true;
}
- cerr<<"Rotor: audio file "<<audio_filename<<" not found"<<endl;
+ logger.error("Audio file "+audio_filename+" not found");
}
return false;
}