mirror of
https://github.com/QuasarApp/Heart.git
synced 2025-05-11 00:49:42 +00:00
some fixes of the node log
This commit is contained in:
parent
ff6551e309
commit
bfe6ed80ba
@ -1246,7 +1246,7 @@ void AbstractNode::newWork(const Package &pkg, AbstractNodeInfo *sender,
|
||||
auto message = QString("Package not parsed! %0 \nresult: %1. \n%2").
|
||||
arg(pkg.toString(), iParser::pareseResultToString(parseResult), data->toString());
|
||||
|
||||
QuasarAppUtils::Params::log(message, QuasarAppUtils::Warning);
|
||||
QuasarAppUtils::Params::log(message, QuasarAppUtils::Info);
|
||||
|
||||
if (parseResult == ParserResult::Error) {
|
||||
|
||||
@ -1263,6 +1263,7 @@ void AbstractNode::newWork(const Package &pkg, AbstractNodeInfo *sender,
|
||||
} else {
|
||||
changeTrust(id, NOTSUPPORT_ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -29,7 +29,10 @@
|
||||
#define QH_PACKAGE(X, S) \
|
||||
public: \
|
||||
static unsigned short commandOld(){return qHash(QString(S)) % 0xFFFF;} \
|
||||
static unsigned short command(){QByteArray ba = QString(S).toLocal8Bit(); return common::Hash16(ba.data(), ba.size());} \
|
||||
static unsigned short command(){\
|
||||
QByteArray ba = QString(S).toLocal8Bit();\
|
||||
return common::Hash16(ba.data(), ba.size());\
|
||||
} \
|
||||
static QString commandText(){return S;} \
|
||||
unsigned short cmd() const override {return X::command();} \
|
||||
unsigned short cmdOld() const override {return X::commandOld();} \
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit afb0ef5fd83d5a00900c721b5d8cdcb1fa32b92a
|
||||
Subproject commit f06e1e290ab91bad4d234dac1120d36cde1fbb12
|
Loading…
x
Reference in New Issue
Block a user