Skip to content

Conversation

@raphael-goetz
Copy link
Member

The idea: instead of returning just application logs we can also log the result of evey node_function.

Instead of having just Log we would have:
ApplicationLog => Log from the Application
SuccessLog => Result of a successful node_function execution
RuntimeErrorLog => Result of an unsuccessful node_function execution

What do you think @Taucher2003 @nicosammito

int64 note_id = 1;
string error_code = 2;
string error_message = 3;
optional string suggestion = 4;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not come from the runtime component. This should be handled inside IDE


message RuntimeErrorLog {
int64 note_id = 1;
string error_code = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should specify this further. We errors can be emitted

message RuntimeErrorLog {
int64 note_id = 1;
string error_code = 2;
string error_message = 3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have an error_code a message is not needed

Comment on lines +32 to +35
message SuccessLog {
int64 note_id = 1;
shared.Value result = 2;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also store what got parsed in. So the parameter values

Comment on lines +44 to 47
message ApplicationLog {
string message = 1;
string level = 2;
string timestamp = 3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite getting the purpose of this log type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants