Skip to content

Commit 7942bb4

Browse files
[helper] Change logging from error to info (#6200)
1 parent ede1fb1 commit 7942bb4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

infra/build_specified_commit.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
"""Module to build a image from a specific commit, branch or pull request
14+
"""Module to build a image from a specific commit, branch or pull request.
1515
1616
This module is allows each of the OSS Fuzz projects fuzzers to be built
1717
from a specific point in time. This feature can be used for implementations
@@ -298,10 +298,9 @@ def detect_main_repo(project_name, repo_name=None, commit=None):
298298
project_name: The name of the oss-fuzz project.
299299
repo_name: The name of the main repo in an OSS-Fuzz project.
300300
commit: A commit SHA that is associated with the main repo.
301-
src_dir: The location of the projects source on the docker image.
302301
303302
Returns:
304-
The repo's origin, the repo's path.
303+
A tuple containing (the repo's origin, the repo's path).
305304
"""
306305

307306
if not repo_name and not commit:

infra/build_specified_commit_test.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
1. The inference of the main repo for a specific project.
1717
2. The building of a projects fuzzers from a specific commit.
1818
19-
IMPORTANT: This test needs to be run with root privileges.
2019
"""
2120
import os
2221
import tempfile

infra/helper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,9 @@ def build_image(args):
569569
pull = y_or_n.lower() == 'y'
570570

571571
if pull:
572-
logging.error('Pulling latest base images...')
572+
logging.info('Pulling latest base images...')
573573
else:
574-
logging.error('Using cached base images...')
574+
logging.info('Using cached base images...')
575575

576576
# If build_image is called explicitly, don't use cache.
577577
if build_image_impl(args.project, cache=args.cache, pull=pull):

0 commit comments

Comments
 (0)