Skip to content

Commit

Permalink
Hinde more log message for JsonSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed Feb 14, 2022
1 parent fbdd051 commit 1482cd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/hunt/serialization/JsonSerializer.d
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ final class JsonSerializer {
}
} else static if(is(memberType == interface) && !is(memberType : JsonSerializable)) {
enum canDeserialize = false;
version(HUNT_DEBUG) warning("skipped a interface member (not JsonSerializable): " ~ member);
version(HUNT_DEBUG_MORE) warning("skipped a interface member (not JsonSerializable): " ~ member);
} else {
enum canDeserialize = true;
}
Expand All @@ -219,7 +219,7 @@ final class JsonSerializer {

auto jsonItemPtr = jsonKeyName in json;
if(jsonItemPtr is null) {
version(HUNT_DEBUG) {
version(HUNT_DEBUG_MORE) {
if(jsonKeyName != member)
warningf("No data available for member: %s as %s", member, jsonKeyName);
else
Expand Down Expand Up @@ -704,7 +704,7 @@ final class JsonSerializer {
debug(HUNT_DEBUG_MORE) infof("memberType: %s in %s", memberType.stringof, T.stringof);

static if(is(memberType == interface) && !is(memberType : JsonSerializable)) {
version(HUNT_DEBUG) warning("skipped a interface member(not JsonSerializable): " ~ member);
version(HUNT_DEBUG_MORE) warning("skipped a interface member(not JsonSerializable): " ~ member);
} else {
auto m = __traits(getMember, obj, member);

Expand Down

0 comments on commit 1482cd6

Please sign in to comment.