Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add env_logger (fix #3869) #7142

Merged
merged 27 commits into from
Sep 3, 2020
Merged

add env_logger (fix #3869) #7142

merged 27 commits into from
Sep 3, 2020

Conversation

tokiedokie
Copy link
Contributor

@tokiedokie tokiedokie commented Aug 21, 2020

#3869

using env_logger for logging

@tokiedokie tokiedokie marked this pull request as ready for review August 21, 2020 06:01
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

@tokiedokie Nice - thank you! I've been wanting this for a long time.

This branch, using -L=debug

~/src/deno> ./target/debug/deno run -L=debug cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
DEBUG JS - cwd /Users/rld/src/deno
DEBUG JS - args []
main_module file:///Users/rld/src/deno/cli/tests/002_hello.ts
fetch_source_file specifier: file:///Users/rld/src/deno/cli/tests/002_hello.ts maybe_referrer: None
⚠️️  Granted read access to "/Users/rld/src/deno/cli/tests/002_hello.ts"
compiled filename: "/Users/rld/Library/Caches/deno/gen/file/Users/rld/src/deno/cli/tests/002_hello.ts.js"
register_complete file:///Users/rld/src/deno/cli/tests/002_hello.ts
Hello World

This branch using RUST_LOG in various ways

~/src/deno> RUST_LOG=debug ./target/debug/deno run cli/tests/002_hello.ts
Hello World
~/src/deno> RUST_LOG=1 ./target/debug/deno run cli/tests/002_hello.ts
Hello World
~/src/deno> RUST_LOG=deno ./target/debug/deno run cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
main_module file:///Users/rld/src/deno/cli/tests/002_hello.ts
fetch_source_file specifier: file:///Users/rld/src/deno/cli/tests/002_hello.ts maybe_referrer: None
⚠️️  Granted read access to "/Users/rld/src/deno/cli/tests/002_hello.ts"
compiled filename: "/Users/rld/Library/Caches/deno/gen/file/Users/rld/src/deno/cli/tests/002_hello.ts.js"
register_complete file:///Users/rld/src/deno/cli/tests/002_hello.ts
Hello World

master branch using -L=debug

~/src/deno> deno run -L=debug cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
DEBUG JS - cwd /Users/rld/src/deno
DEBUG JS - args []
main_module file:///Users/rld/src/deno/cli/tests/002_hello.ts
fetch_source_file specifier: file:///Users/rld/src/deno/cli/tests/002_hello.ts maybe_referrer: None
⚠️️  Granted read access to "/Users/rld/src/deno/cli/tests/002_hello.ts"
Check file:///Users/rld/src/deno/cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
DEBUG TS - "sendSync" "op_now"
⚠️️  Granted access to high precision time
DEBUG TS - ">>> compile start" {"rootNames":["file:///Users/rld/src/deno/cli/tests/002_hello.ts"]}
DEBUG TS - "compiler::host.getCompilationSettings()"
DEBUG TS - "compiler::host.getDefaultLibFileName()"
DEBUG TS - "compiler::host.getSourceFile" "file:///Users/rld/src/deno/cli/tests/002_hello.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.window.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.ns.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2016.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es5.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.core.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.collection.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.iterable.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.symbol.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.generator.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.proxy.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.reflect.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.symbol.wellknown.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2016.array.include.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.object.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.sharedmemory.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.typedarrays.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.asynciterable.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.asyncgenerator.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.regexp.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.array.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.object.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.symbol.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.bigint.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.symbol.wellknown.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.shared_globals.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.web.d.ts"
DEBUG TS - "compiler::host.writeFile" "deno://002_hello.js"
DEBUG TS - "compiler::host.writeFile" "cache:///tsbuildinfo.json"
DEBUG TS - "<<< compile end" {"rootNames":["file:///Users/rld/src/deno/cli/tests/002_hello.ts"]}
DEBUG TS - "sendSync" "op_now"
⚠️️  Granted access to high precision time
DEBUG TS - "sendSync" "op_compiler_respond"
DEBUG - Compilation Statistics:
Files: 44
Nodes: 29376
Identifiers: 11501
Symbols: 6543
Types: 84
Instantiations: 2
Parse time: 8
Bind time: 133
Check time: 11
Emit time: 14
Total TS time: 166
Compile time: 184.027165
compiled filename: "/Users/rld/Library/Caches/deno/gen/file/Users/rld/src/deno/cli/tests/002_hello.ts.js"
register_complete file:///Users/rld/src/deno/cli/tests/002_hello.ts
Hello World

Why is the output different?

@tokiedokie
Copy link
Contributor Author

tokiedokie commented Aug 22, 2020

@ry the difference between master's deno run -L=debug cli/tests/002_hello.ts and this branch's ./target/debug/deno run -L=debug cli/tests/002_hello.ts is caused by the cache
run without cache, I get same output

master branch

❯ ./target/debug/deno run -L=debug --reload cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
DEBUG JS - cwd /home/ubuntu/deno
DEBUG JS - args []
main_module file:///home/ubuntu/deno/cli/tests/002_hello.ts
fetch_source_file specifier: file:///home/ubuntu/deno/cli/tests/002_hello.ts maybe_referrer: None
⚠️️  Granted read access to "/home/ubuntu/deno/cli/tests/002_hello.ts"
Check file:///home/ubuntu/deno/cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
DEBUG TS - "sendSync" "op_now"
⚠️️  Granted access to high precision time
DEBUG TS - ">>> compile start" {"rootNames":["file:///home/ubuntu/deno/cli/tests/002_hello.ts"]}
DEBUG TS - "compiler::host.getCompilationSettings()"
DEBUG TS - "compiler::host.getDefaultLibFileName()"
DEBUG TS - "compiler::host.getSourceFile" "file:///home/ubuntu/deno/cli/tests/002_hello.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.window.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.ns.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2016.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es5.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.core.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.collection.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.iterable.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.symbol.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.generator.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.proxy.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.reflect.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.symbol.wellknown.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2016.array.include.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.object.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.sharedmemory.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.typedarrays.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.asynciterable.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.asyncgenerator.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.regexp.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.array.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.object.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.symbol.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.bigint.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.symbol.wellknown.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.shared_globals.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.web.d.ts"
DEBUG TS - "compiler::host.writeFile" "deno://002_hello.js"
DEBUG TS - "compiler::host.writeFile" "cache:///tsbuildinfo.json"
DEBUG TS - "<<< compile end" {"rootNames":["file:///home/ubuntu/deno/cli/tests/002_hello.ts"]}
DEBUG TS - "sendSync" "op_now"
⚠️️  Granted access to high precision time
DEBUG TS - "sendSync" "op_compiler_respond"
DEBUG - Compilation Statistics:
Files: 44
Nodes: 29376
Identifiers: 11501
Symbols: 8266
Types: 3668
Instantiations: 1168
Parse time: 151
Bind time: 1577
Check time: 3801
Emit time: 68
Total TS time: 5597
Compile time: 5782.2096
compiled filename: "/home/ubuntu/.cache/deno/gen/file/home/ubuntu/deno/cli/tests/002_hello.ts.js"
register_complete file:///home/ubuntu/deno/cli/tests/002_hello.ts
Hello World

this PR branch

❯ ./target/debug/deno run -L=debug --reload cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
DEBUG JS - cwd /home/ubuntu/deno
DEBUG JS - args []
main_module file:///home/ubuntu/deno/cli/tests/002_hello.ts
fetch_source_file specifier: file:///home/ubuntu/deno/cli/tests/002_hello.ts maybe_referrer: None
⚠️️  Granted read access to "/home/ubuntu/deno/cli/tests/002_hello.ts"
Check file:///home/ubuntu/deno/cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
DEBUG TS - "sendSync" "op_now"
⚠️️  Granted access to high precision time
DEBUG TS - ">>> compile start" {"rootNames":["file:///home/ubuntu/deno/cli/tests/002_hello.ts"]}
DEBUG TS - "compiler::host.getCompilationSettings()"
DEBUG TS - "compiler::host.getDefaultLibFileName()"
DEBUG TS - "compiler::host.getSourceFile" "file:///home/ubuntu/deno/cli/tests/002_hello.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.window.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.ns.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2016.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es5.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.core.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.collection.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.iterable.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.symbol.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.generator.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.proxy.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.reflect.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2015.symbol.wellknown.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2016.array.include.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.object.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.sharedmemory.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2017.typedarrays.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.asynciterable.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.asyncgenerator.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.regexp.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2018.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.array.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.object.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2019.symbol.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.bigint.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.es2020.symbol.wellknown.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.intl.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.string.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.esnext.promise.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.shared_globals.d.ts"
DEBUG TS - "compiler::host.getSourceFile" "asset:///lib.deno.web.d.ts"
DEBUG TS - "compiler::host.writeFile" "deno://002_hello.js"
DEBUG TS - "compiler::host.writeFile" "cache:///tsbuildinfo.json"
DEBUG TS - "<<< compile end" {"rootNames":["file:///home/ubuntu/deno/cli/tests/002_hello.ts"]}
DEBUG TS - "sendSync" "op_now"
⚠️️  Granted access to high precision time
DEBUG TS - "sendSync" "op_compiler_respond"
DEBUG - Compilation Statistics:
Files: 44
Nodes: 29376
Identifiers: 11501
Symbols: 8266
Types: 3668
Instantiations: 1168
Parse time: 168
Bind time: 1327
Check time: 2885
Emit time: 76
Total TS time: 4456
Compile time: 4556.9652
compiled filename: "/home/ubuntu/.cache/deno/gen/file/home/ubuntu/deno/cli/tests/002_hello.ts.js"
register_complete file:///home/ubuntu/deno/cli/tests/002_hello.ts
Hello World

I updated RUST_LOG

the args of RUST_LOG is here

using RUST_LOG=debug outputs debug massage from Rust not include TS/JS

RUST_LOG=debug ./target/debug/deno run cli/tests/002_hello.ts
Deno isolate init with snapshots.
rust:shared_queue:reset
main_module file:///home/ubuntu/deno/cli/tests/002_hello.ts
fetch_source_file specifier: file:///home/ubuntu/deno/cli/tests/002_hello.ts maybe_referrer: None
⚠️️  Granted read access to "/home/ubuntu/deno/cli/tests/002_hello.ts"
compiled filename: "/home/ubuntu/.cache/deno/gen/file/home/ubuntu/deno/cli/tests/002_hello.ts.js"
register_complete file:///home/ubuntu/deno/cli/tests/002_hello.ts
Hello World

using RUST_LOG=deno::permissions outputs debug message from cli/permissions.rs

❯ RUST_LOG=deno::permissions ./target/debug/deno run --reload cli/tests/002_hello.ts
⚠️️  Granted read access to "/home/ubuntu/deno/cli/tests/002_hello.ts"
Hello World

@tokiedokie tokiedokie closed this Aug 22, 2020
@tokiedokie tokiedokie reopened this Aug 22, 2020
@ry
Copy link
Member

ry commented Aug 23, 2020

Nice!

It would be good to get a test demonstrating the RUST_LOG facility and also to add some documentation (probably to the command-line help) about this feature.

@tokiedokie
Copy link
Contributor Author

some tests won't be passed because of #7185

@bartlomieju
Copy link
Member

bartlomieju commented Aug 27, 2020

@tokiedokie we still want messages like Check <file> or Download <file> to go to stderr - can env_logger be configured in such a way to debug messages go to stdout, while warnings and errors got to stderr? Alternatively you can keep it the way it's right now - ie. push all log messages from Rust to stderr.

@bartlomieju
Copy link
Member

bartlomieju commented Aug 27, 2020

@tokiedokie one more thing; while you're working on the logger, could you try to address #6641 as well?

@tokiedokie
Copy link
Contributor Author

@bartlomieju thank you for your feedback
I couldn't find the way to configure env_logger in such a way to debug messages go to stdout, while warnings and errors got to stderr
I keep making all logs go to stderr

I will try to find #6641

@tokiedokie
Copy link
Contributor Author

tokiedokie commented Aug 28, 2020

@bartlomieju I confirmed warn logs (#6641)
Should I change default leg level from Info to Error so deno doesn't output warn logs by default?

@bartlomieju
Copy link
Member

@bartlomieju I confirmed warn logs (#6641)
Should I change default leg level from Info to Error so deno doesn't output warn logs by default?

@tokiedokie I think that might brake other output after all... Let's skip this issue in this PR. Could you rebase your branch so we can land it?

@tokiedokie
Copy link
Contributor Author

@bartlomieju @ry Done. Please review

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM - thank you @tokiedokie

@ry ry merged commit fcee426 into denoland:master Sep 3, 2020
@tokiedokie tokiedokie deleted the use_env_logger branch September 4, 2020 07:23
@bartlomieju bartlomieju mentioned this pull request Sep 15, 2020
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