Skip to content

Commit

Permalink
Enhanced logs
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbawab committed Jul 15, 2017
1 parent 5743d2a commit 6ac05e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/syntax/Syntax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace ecc{

bool Syntax::parseTokens(std::string fileName, std::vector<std::shared_ptr<LexicalToken>> &lexicalTokens) {

BOOST_LOG(ecc_logger::get()) << "Analyzing syntax in file: " << fileName;
BOOST_LOG(ecc_logger::get()) << "Started parsing the lexical tokens [PHASE " << m_phase << "]";

// Prepare the stack
Expand Down Expand Up @@ -159,6 +160,7 @@ namespace ecc{

BOOST_LOG(ecc_logger::get()) << "Finished parsing the lexical tokens [PHASE " << m_phase << "]";
BOOST_LOG(ecc_logger::get()) << (success ? "SUCCESS" : "FAILURE");
BOOST_LOG(ecc_logger::get()) << "----------";
return success;
}

Expand Down

0 comments on commit 6ac05e9

Please sign in to comment.