-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(logging): Add "near_vm" target to near-vm logging (#9397)
Near VM logging is rather verbose, but controlling it requires setting logging verbosity of many different implicit targets. With this change all of `near_vm` logging can be controlled with a single target. Before: ``` Aug 08 13:10:57 nikurt-dump neard[1295836]: 2023-08-08T13:10:57.647968Z INFO do_apply_chunks{block_height=98346897 block_hash=7jBX38Y6UGkBCnMzrGRqsx2cxbZjNyzBJi3JV66vE3uK}:new_chunk{shard_id=0}:process_state_update:apply{num_transactions=2}:process_receipt{receipt_id=3c3oBDaQCthsaxhbw5NR1ytAC4NgYANubH5KSVCDnExA predecessor=app.nearcrowd.near receiver=app.nearcrowd.near id=3c3oBDaQCthsaxhbw5NR1ytAC4NgYANubH5KSVCDnExA}:run{code.len=484251 method_name=finalize_task vm_kind=NearVm current_protocol_version=62}:NearVM::compile_and_load:NearVM::read_from_cache:link_module: near_vm_engine::universal::link: enter Aug 08 13:10:57 nikurt-dump neard[1295836]: 2023-08-08T13:10:57.648494Z INFO do_apply_chunks{block_height=98346897 block_hash=7jBX38Y6UGkBCnMzrGRqsx2cxbZjNyzBJi3JV66vE3uK}:new_chunk{shard_id=0}:process_state_update:apply{num_transactions=2}:process_receipt{receipt_id=3c3oBDaQCthsaxhbw5NR1ytAC4NgYANubH5KSVCDnExA predecessor=app.nearcrowd.near receiver=app.nearcrowd.near id=3c3oBDaQCthsaxhbw5NR1ytAC4NgYANubH5KSVCDnExA}:run{code.len=484251 method_name=finalize_task vm_kind=NearVm current_protocol_version=62}:NearVM::compile_and_load:NearVM::read_from_cache:link_module: near_vm_engine::universal::link: close time.busy=525µs time.idle=7.86µs Aug 08 13:10:57 nikurt-dump neard[1295836]: 2023-08-08T13:10:57.675082Z INFO do_apply_chunks{block_height=98346897 block_hash=7jBX38Y6UGkBCnMzrGRqsx2cxbZjNyzBJi3JV66vE3uK}:new_chunk{shard_id=3}:process_state_update:apply{num_transactions=1}:process_receipt{receipt_id=4EDkP4qS6Q2GJGFgYGqVDoTeFP96eH8tA7u7yaqVxctk predecessor=p4.spimm.near receiver=v2_0_2.perp.spin-fi.near id=4EDkP4qS6Q2GJGFgYGqVDoTeFP96eH8tA7u7yaqVxctk}:run{code.len=2777209 method_name=batch_ops vm_kind=NearVm current_protocol_version=62}:NearVM::compile_and_load:NearVM::read_from_cache:link_module: near_vm_engine::universal::link: enter ``` After: ``` Aug 08 13:05:45 nikurt-dump neard[130008]: 2023-08-08T13:05:42.955565Z INFO do_apply_chunks{block_height=134354991 block_hash=6peTfFzPBa9JHerVZEaaNFMenrL8fqhaNXycNpwv523v}:new_chunk{shard_id=1}:process_state_update:apply{num_transactions=0}:process_receipt{receipt_id=5kG2gYSYNEdyZjtsD8JQC3dLUhHiqZnxGr11Jj53TZqP predecessor=relay.aurora receiver=aurora id=5kG2gYSYNEdyZjtsD8JQC3dLUhHiqZnxGr11Jj53TZqP}:run{code.len=1060370 method_name=submit vm_kind=NearVm current_protocol_version=62}:NearVM::compile_and_load:NearVM::read_from_cache:link_module: near_vm: close time.busy=887µs time.idle=8.13µs Aug 08 13:05:45 nikurt-dump neard[130008]: 2023-08-08T13:05:42.955868Z INFO do_apply_chunks{block_height=134354991 block_hash=6peTfFzPBa9JHerVZEaaNFMenrL8fqhaNXycNpwv523v}:new_chunk{shard_id=0}:process_state_update:apply{num_transactions=0}:process_receipt{receipt_id=EsKMrLV9cG9LeLc9osHvMJKDkLKJepyifBAWZPCHghif predecessor=operator-manager.orderly-qa.testnet receiver=asset-manager.orderly-qa.testnet id=EsKMrLV9cG9LeLc9osHvMJKDkLKJepyifBAWZPCHghif}:run{code.len=3211876 method_name=operator_execute_action vm_kind=NearVm current_protocol_version=62}:NearVM::compile_and_load:NearVM::read_from_cache:link_module: near_vm: enter Aug 08 13:05:45 nikurt-dump neard[130008]: 2023-08-08T13:05:42.957634Z INFO do_apply_chunks{block_height=134354991 block_hash=6peTfFzPBa9JHerVZEaaNFMenrL8fqhaNXycNpwv523v}:new_chunk{shard_id=0}:process_state_update:apply{num_transactions=0}:process_receipt{receipt_id=EsKMrLV9cG9LeLc9osHvMJKDkLKJepyifBAWZPCHghif predecessor=operator-manager.orderly-qa.testnet receiver=asset-manager.orderly-qa.testnet id=EsKMrLV9cG9LeLc9osHvMJKDkLKJepyifBAWZPCHghif}:run{code.len=3211876 method_name=operator_execute_action vm_kind=NearVm current_protocol_version=62}:NearVM::compile_and_load:NearVM::read_from_cache:link_module: near_vm: close time.busy=1.76ms time.idle=6.62µs ```
- Loading branch information
Showing
12 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters