nanos-world / issues

Issue Tracker for nanos world
9 stars 1 forks source link

Console prints #907

Closed JustGodWork closed 1 year ago

JustGodWork commented 1 year ago

Prerequisites

Your Environment

Description

Issue:

When we want to Console.Log, Console.Warn, Console.Error we get "S_WARN", "S_ERR" instead of brackets with "ERROR" etc...

Steps to reproduce the behavior

Simply print something using Console.Error or Console.Warn

Expected behavior

Get "ERROR", "WARN" instead of "S_ERR", "S_WARN"

Actual behavior

https://cdn.discordapp.com/attachments/1021384590813831239/1103256688024363058/image.png

gtnardy commented 1 year ago

That is intended, since this update https://docs.nanos.world/changelog#1.39.1 scripting logs printed with Console commands have that pattern, to differentiate from internal errors/warnings

Timmy-the-nobody commented 1 year ago

I agree with @JustGodWork, prints are not very elegant when they are triggered by a script now Even if the native logs/errors/warns are separated from the script ones, it could be nice to have something cleaner as prefix for this

gtnardy commented 1 year ago

@Timmy-the-nobody fight time https://nanos-world.canny.io/ideas/p/mark-console-logs-properly

Timmy-the-nobody commented 1 year ago

@gtnardy maybe "S_ERR" could be renamed "S_ERROR" at least?

gtnardy commented 1 year ago

it could, but S_WARN would still be abbreviated