summaryrefslogtreecommitdiff
path: root/NT/src/graph.cpp
diff options
context:
space:
mode:
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;
}