In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Error handling and logging functions
1) check this option to continue execution when there is an error in the script, which is global control and is valid for all scripts.
2) non-critical resource errors are taken as warnings. If this item is cancelled, non-html resource errors in some image classes will be treated as errors rather than warning.
3) function Lr_continue_on_error meaning: specify an error handling method, after the error, you can choose to continue to run the script, or directly exit the execution. You can develop error handling mechanisms. You can control the handling of errors by inserting this function.
The usage of the Lr_continue_on_error function:
Lr_continue_on_error (1) means to open this function and continue execution if there is an error.
Lr_continue_on_error (0) means to turn off the function
As can be seen from the above results, the first group of footers made an error, but continued to execute, and printed the results of the first output; after the second group of footers made an error, they did not continue.
4) Analysis of log function
The difference between the four functions:
Lr_output_message uses script paragraph and line number to output, more detailed
The lr_log_message output does not have a script segment and line number, and only saves the log locally, which can reduce network consumption.
Lr_message consumes a certain amount of network and sends log information to controller
The way Lr_error_message outputs the error log
Menu skills
1) Select run step by step or press F10 to debug the script step by step.
2) add breakpoints:
You can increase the breakpoint by selecting the script you want to breakpoint, and then pressing F9, or selecting toggle breakpoint.
3) right-click on the script interface, select open script directory, you can quickly find the location where the script is saved.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.