fix: added logging & renamed some messages
This commit is contained in:
parent
8d8ee83180
commit
820a8dd8d7
@ -90,7 +90,7 @@ func GetUserFavoritesCount(ctx context.Context, driver neo4j.DriverWithContext,
|
||||
log.WithFields(log.Fields{
|
||||
"anthrove_user_id": anthroveUserID,
|
||||
"anthrove_user_fav_count": userFavoriteCount,
|
||||
}).Trace("graph: get user favorite count")
|
||||
}).Trace("graph: got user favorite count")
|
||||
|
||||
return userFavoriteCount, nil
|
||||
}
|
||||
@ -141,7 +141,7 @@ func GetUserSourceLink(ctx context.Context, driver neo4j.DriverWithContext, anth
|
||||
log.WithFields(log.Fields{
|
||||
"anthrove_user_id": anthroveUserID,
|
||||
"anthrove_data": userSource,
|
||||
}).Trace("graph: get user favorite count")
|
||||
}).Trace("graph: got user favorite count")
|
||||
|
||||
return userSource, nil
|
||||
}
|
||||
@ -206,6 +206,10 @@ func GetAnthroveUser(ctx context.Context, driver neo4j.DriverWithContext, anthro
|
||||
|
||||
}
|
||||
|
||||
log.WithFields(log.Fields{
|
||||
"anthrove_user_id": anthroveUserID,
|
||||
}).Trace("graph: got anthrove user")
|
||||
|
||||
return &anthroveUser, nil
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user