i have a go colly crawler that i am trying to crawl many sites . on my terminal it prints a lot of :
2023/05/30 02:22:56 Max depth limit reached
2023/05/30 02:22:56 Max depth limit reached
2023/05/30 02:22:56 Max depth limit reached
2023/05/30 02:22:56 Max depth limit reached
2023/05/30 02:22:56 Max depth limit reached
2023/05/30 02:22:56 Max depth limit reached
2023/05/30 02:22:56 Max depth limit reached
it makes it hard for me to read some prints that i have placed . i wanted to know if there is any way to ignore printing this in termial . thanks
Max depth limit reachedis colly.ErrMaxDepth. There must be codes like this in your project:If you don't want to log this error, add a simple check to exclude it:
Another option is to redirect the output to a file:
or copy the output to a file and also to standard output with
tee: